Convert date to seconds

Andrew Kluthe andrew at ctech.me
Thu Jul 18 12:10:31 EDT 2013


I do believe the seconds that are given at any time by livecode are
timezone agnostic (utc?) but livecode uses your system's settings to do
conversions.

For instance, the seconds livecode spits out for me at eleven pm of the
15th in the central standard timezone would put the same second number as
the 16th at midnight in the eastern time zone.








On Thu, Jul 18, 2013 at 10:56 AM, Thomas McGrath III <mcgrath3 at mac.com>wrote:

> That's weird. I still get the 16th. Can anyone else confirm the 15th? (not
> doubting you Dar)
>
> I might have to change this then…
>
> Tom
>
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> mcgrath3 at mac.com
>
> On Jul 18, 2013, at 12:39 AM, Dar Scott <dsc at swcp.com> wrote:
>
> >
> > On Jul 17, 2013, at 7:03 PM, Thomas McGrath III wrote:
> >
> >> I am converting the short date (08/16/13) to seconds and I get
> 1376625600
> >
> > When I converted it back earlier today, I got the 15th.  I guess there
> is a problem related to timezones or something.
> >
> > Consider NAMEyyyymmdd.  It is easy to parse.  It lists in order.  It is
> somewhat readable.  It is two characters shorter.
> >
> > Dar
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
Regards,

Andrew Kluthe
andrew at ctech.me



More information about the use-livecode mailing list