is a date

Klaus major-k klaus at major-k.de
Sat Oct 14 12:44:30 EDT 2017


Hi Roger,

> Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode <use-livecode at lists.runrev.com>:
> 
> put "11/20/2017" is a date
> returns true
> ----
> put "10" is a date
> returns true
> ----
> put "raccoon" is a date
> returns false
> ----
> 
> WHY is "10" seen as a date?

looks like the engine is seeing seconds also as a possible valid date.

convert 0 to long date and long time;put it -> Thursday, January 1, 1970 1:00:00 AM
1:00:00 = DST here in germany!

convert 10 to long date and long time;put it -> Thursday, January 1, 1970 1:00:10 AM
etc...

And of course:
put (the seconds) is a date -> TRUE

> ~Roger

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list