[REBOL] epoch? Re:(4)

1999-10-28 Thread Russ
You mean to use 31-12-1969 At 10:40 PM 10/28/99 -0400, you wrote: >Elegant, except it's one day off ... should be now - 12-31-1969 * 86400, >except that gives an invalid date.

[REBOL] epoch? Re:(4)

1999-10-29 Thread Russ
Sure sounds like it... since the algorithm has to presume SOME time zone, so GMT would be used. Use now/zone to create the offset you desire. R. At 09:12 AM 10/29/99 -0400, you wrote: >I'm off four hours using Gabriele's solution... could this be the difference >between my time zone and GMT?

[REBOL] epoch? Re:(4)

1999-10-29 Thread ralph
> > > date: now > > seconds: ((date - 1-1-1970) * 86400) + (date/time/hour * 3600) + > > (date/time/minute * 60) + date/time/second > > > > Gabriele has the closest solution yet, but it's still 4 hours short. I'm > thinking, I'm thinking. > > --Ralph > OKAY! I gots it! A quick addon to Gabriele'