| Subject |
Re: time() funtion |
| From |
Mustansir Ghor <mustan31@hotmail.com> |
| Date |
Sun, 24 Jul 2022 06:45:36 -0400 |
| Newsgroups |
dbase.getting-started |
Dear Mervyn Sir
Thank you.
Regards
Mustansir
Mervyn Bick Wrote:
> On 2022/07/24 11:24, Mustansir Ghor wrote:
> > Dear All
> >
> > Can time() function be compared with arithmetic operators as time value?
> >
> > Best Regards
> > Mustansir
>
> Yes, but ..... :-(
>
> Time() returns the system time as a character string. If the computer
> returns time in 24h format then '11:01:10' < '13:01:20' returns true.
> If the computer returns time in 12h format then '11:01:10 AM' <
> '01:01:20 PM' returns false.
>
> It depends on what you are doing but ctot() will covert the character
> string returned by time() to a time value.
>
> Both ctot('11:01:10') < ctot('13:01:20') and ctot('11:01:10 AM') <
> ctot(01:01:20 PM') will return true irrespective of whether the computer
> returns time in 12h or 24h format.
>
> Mervyn.
>
>
>
|
|