Re: Number of days since 1/1/0001
Re: Number of days since 1/1/0001
- Subject: Re: Number of days since 1/1/0001
- From: ehsan saffari <email@hidden>
- Date: Sun, 25 Nov 2001 03:32:16 -0600
On 24/11/2001 23:34, Chris Nebel, email@hidden wrote:
>
the Date and Time Utilities
>
package it uses -- punts on the whole Gregorian/Julian mess and takes the
>
simple way out: it uses the modern calendar as a reference point and works
>
backward from there.
Exactly what I am doing to convert Gregorian <-> Jalali calendars in AS.
Day 1 Gregorian is one reference point and (it + 226894) is the other.
>
The simplest
>
way I can find to get a date of 1/1/0001 is this:
>
>
set x to date "1/1"
>
set year of x to 1 --> date "Monday, January 1, 0001 12:00:00 AM"
>
Ecellent. Thank you. And special thanks to Nigel Garvey.
cheers
ehsan