ParseDate limited to 2037

Windows specific forum
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

ParseDate limited to 2037

Post by IdeasVacuum »

PB5.6 Win7x86
Hmm:
Success

Code: Select all

sCurrentDate.s = "19/04/2037"
Debug ParseDate("%dd/%mm/%yyyy",sCurrentDate)
Failure

Code: Select all

sCurrentDate.s = "19/04/2038"
Debug ParseDate("%dd/%mm/%yyyy",sCurrentDate)
Seems odd to me since 19/04/2038 is a valid date and it's not sooo far in the future......
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: ParseDate limited to 2037

Post by Sicro »

PureBasic - Date

Overview
[...]
Note: supported date/time values are 1970-01-01, 00:00:00 for the minimum and 2038-01-19, 03:14:07 for the maximum.
GPI and I have collected a few codes that support extended dates: DateX, DateAndTimeA, Date64
https://github.com/SicroAtGit/PureBasic ... aster/Date
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: ParseDate limited to 2037

Post by IdeasVacuum »

That is a cool selection of time toys Sicro, thanks 8)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: ParseDate limited to 2037

Post by Dude »

Sicro wrote:GPI and I have collected a few codes that support extended dates
They're nice workarounds for now, but PureBasic really needs to support this natively.
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: ParseDate limited to 2037

Post by Sicro »

Hello Dude

Missing features can be inserted with includes. So we can also take care of adding features and the PB developer does not have all the work.
At the native date library I give you but right. That should really be expanded by the PB developers.
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8425
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Re: ParseDate limited to 2037

Post by netmaestro »

BERESHEIT
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: ParseDate limited to 2037

Post by IdeasVacuum »

It is very interesting - especially the contribution from another frog!
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
CONVERT
Enthusiast
Enthusiast
Posts: 127
Joined: Fri May 02, 2003 12:19 pm
Location: France

Re: ParseDate limited to 2037

Post by CONVERT »

Thanks to netmaestro and wilbert (http://www.purebasic.fr/english/viewtop ... 12&t=56031)

I agree: PureBasic really needs to support this natively.
PureBasic 6.01 LTS 64 bit | Windows 10 Pro x64 | Intel(R) Core(TM) i7-8700 CPU @ 3.20Ghz 16 GB RAM, SSD 500 GB, PC locally assembled
Post Reply