is a date

Jim Lambert jiml at netrin.com
Sun Oct 15 21:44:19 EDT 2017


Roger wrote:
> 
> 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?

Because it is legitimately a date expressed in seconds?

convert 10 to long date
= Wednesday, December 31, 1969

In fact, converting any integer from -57600 to 86400 into a long date will result in Wednesday, December 31, 1969

Convert -57601 to long date will result in…Guess what!
Wednesday, December 30, 1969

JimL






More information about the use-livecode mailing list