ietf-mta-filters
[Top] [All Lists]

[sieve] Julian date vs. :zone...

2009-09-17 12:07:10
Hello!

RFC 5260 states

     "julian"    => the Modified Julian Day, that is, the date
                    expressed as an integer number of days since
                    00:00 UTC on November 17, 1858 (using the Gregorian
                    calendar).  This corresponds to the regular
                    Julian Day minus 2400000.5.  Sample routines to
                    convert to and from modified Julian dates are
                    given in Appendix A.

Do I understand it right that date-part "julian" ignores any timezones
that way?

According to http://en.wikipedia.org/wiki/Julian_day,
  A Julian date of 2454115.05486 means that the date and Universal Time
  is Sunday January 14, 2007 at 13:18:59.9.
So "julian" for that time would be 54114.55486, truncated down, i.e.
54114? So I could calculate "julian" by using an Unix timestamp,
dividing it by 86400 and adding 39610 to it, without any timestamp
corrections?

Kind regards,

Hannah.
_______________________________________________
sieve mailing list
sieve(_at_)ietf(_dot_)org
https://www.ietf.org/mailman/listinfo/sieve

<Prev in Thread] Current Thread [Next in Thread>