Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Date limited to 2020 and 2015 does not work ?!?
Date limited to 2020 and 2015 does not work ?!? [message #30010] Thu, 02 December 2010 21:11 Go to previous message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hi all,

Playing around with the StrToDate() fonction, I discovered that year 2015 doesn't work at all and after 2020, dates role back to 1900.

Some of us probably are making softwares that will last more than 5 years... so I think this point needs some consideration.

Just like the Year 2000 bug, we have our own Year 2015 and year 2020 BUG Very Happy

Here is the bug in action:

	time = timeConverter.Scan("1/1/14 0:0:1");
	DUMP(time);
	DUMP(time.Get());
	time = timeConverter.Scan("1/1/2015:0:1");
	DUMP(time);
	DUMP(time.Get());
	time = timeConverter.Scan("1/1/15:0:1");
	DUMP(time);
	DUMP(time.Get());
	time = timeConverter.Scan("1/1/16 0:0:1");
	DUMP(time);
	DUMP(time.Get());

	time = timeConverter.Scan("1/1/19 0:0:1");
	DUMP(time);
	time = timeConverter.Scan("1/1/20 0:0:1");
	DUMP(time);
	time = timeConverter.Scan("1/1/21 0:0:1");
	DUMP(time);


Here is the output:
time = 01/01/2014 00:00:01
time.Get() = 63555753601
time = 
time.Get() = -1034058182400
time = 
time.Get() = -1034058182400
time = 01/01/2016 00:00:01
time.Get() = 63618825601
time = 01/01/2019 00:00:01
time = 01/01/1920 00:00:01
time = 01/01/1921 00:00:01

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HELPER: Value grouping to ValueArray
Next Topic: NEW: generic Toupel grouper
Goto Forum:
  


Current Time: Mon May 06 02:56:00 CEST 2024

Total time taken to generate the page: 0.01389 seconds