MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Machine date and Mathematica Date

  • To: mathgroup at
  • Subject: [mg53056] Machine date and Mathematica Date
  • From: János <janos.lobb at>
  • Date: Wed, 22 Dec 2004 04:52:46 -0500 (EST)
  • Sender: owner-wri-mathgroup at


I am wondering what others are doing to sync Mathematica date functions 
with the OS date functions. For example the Book says that Mathematica 
starts date on Jan 1st 1900. Most unix systems, OSX among them, starts 
the date at Jan 1st 1970, plus minus the time zone. The reason that I 
am asking because I have some date values generated by the OS which I 
want to parse and process in Mathematica. If I do nothing all the tick 
marks will show date from the 1934 or so. for example a record looks 
like this:

Mon Dec 20 13:18:02 EST 2004, 1103566682, 1103566692}

normal unix date, then transaction start date in seconds from the epoch 
start and the transaction end date from the epoch start of the OS.

If I convert it back with Mathematica



then it is not exactly 2004. The difference is the difference between 
the start of the two epoch:





If I do adjustments, then I would like to do something smart, not just 
my own simple shift. I looked the date functions in Mathematica, but 
saw no epoch adjustments there.

Thanks ahead,
"A cyber virgin has never had intercourse outside of virtual reality, 
whereas a virtual virgin has never had intercourse with a real person 
even in virtual reality"

-Ray Kurzweil - "The age of spiritual machines"

  • Prev by Date: Re: Mathematica is not very clever
  • Next by Date: Re: finite domains
  • Previous by thread: Re: Sequential evaluation of lists
  • Next by thread: Mathematica is destroying my sanity....