In my experience a time field is more or less useless and you may as well 
store the time as a string.  I think everyone else may feel the same,  
which is why IS_TIME still has no format validation even after 5 years.

If you don't want to store as a string,  then if I were you,  I would store 
as datetime and just have the same default date in every datetime field. It 
isn't difficult to discard the unwanted date.

However,  maybe others have a different view...

On Wednesday, October 17, 2012 6:52:58 PM UTC+1, dantuluri jaganadha raju 
wrote:
>
> I kept     field('aaa', requires=IS_DATE(format='%H:%M')) . and when I try 
> to open database administration and that particular table I am getting 
> error 
> str' object has no attribute 'year'. and more over I want only time as 
> input to a field
>
>                                        Thank in advance.
>
> On Friday, October 12, 2012 10:44:23 AM UTC+5:30, dantuluri jaganadha raju 
> wrote:
>>
>> Hi,
>>          I want to accept only 9 digit number as input to one field and 
>> other's are invalid. and in another field I want to accept time format of 
>> form ("hours:minutes" to "hours:minutes").
>>  
>>                            Thank you in advance...
>>
>

-- 



Reply via email to