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 ?!?
Re: Date limited to 2020 and 2015 does not work ?!? [message #30014 is a reply to message #30010] Fri, 03 December 2010 09:32 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 327
Registered: July 2009
Senior Member
Didier wrote on Thu, 02 December 2010 21:11

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.


It's not a bug, it's feature Smile
This part of code (from TimeDate.cpp) causes this behavior:
                case 'y':
                        d.year = n;
                        if(d.year < 20) d.year += 2000; // Check again in 2015....
                        else
                        if(d.year < 100) d.year += 1900;
                        break;


Maybe it is time to change it?
 
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 Jun 17 12:43:53 CEST 2024

Total time taken to generate the page: 0.03235 seconds