To convert Excel to TM1 dates subtract 21916

Post Reply
John Hammond
Community Contributor
Posts: 300
Joined: Mon Mar 23, 2009 10:50 am
OLAP Product: PAW/PAX 2.0.72 Perspectives
Version: TM1 Server 11.8.003
Excel Version: 365 and 2016
Location: South London

To convert Excel to TM1 dates subtract 21916

Post by John Hammond »

Given its integration with Excel it seems a strange choice that the base date chosen for TM1 dates is 01/01/1960.

Is there any logic for this or is it just the founder of TM1's birthday or when Denmark won the world chess championship or something like that.

Any views appreciated.
User avatar
Steve Rowe
Site Admin
Posts: 2456
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: To convert Excel to TM1 dates subtract 21916

Post by Steve Rowe »

Maybe the base spreadsheet sytem for TM1 was Lotus 123 and it comes from there?
Technical Director
www.infocat.co.uk
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: To convert Excel to TM1 dates subtract 21916

Post by Alan Kirk »

Steve Rowe wrote:Maybe the base spreadsheet sytem for TM1 was Lotus 123 and it comes from there?
Nope. Lotus 123 also used 1/1/1900. That's actually where Excel inherited its "1900 is a leap year" bug from. The Excel designers knew it was wrong but they had to adopt it anyway or risk breaking compatibility with Lotus. (Which mattered, back then.)

If I had to make a guess it would be because the original versions of TM1 only supported 2 digit years; I think that the 4 digit kind came in around 8.3 or 8.4 from memory. Date calculations using the first decades of the 20th century would be irrelevant for most purposes, whereas back in the mid 90's when TM1 first flowered you'd run out of dates pretty quickly had you used 1900 as your starting point. A start date of 1960 would give you the ability to calculate out to 2059, a far more useful range. But any start date, even 1/1/1900, is arbitrary.

(Edit: I just did a search of the release notes and it was 8.4. And let's not forget that the Macintosh uses 1/1/1904 for its arbitrary date. Might have been Steve Jobs' birthday, but I doubt it...)
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply