PureBasic Forum
http://www.purebasic.fr/english/

ParseDate limited to 2037
http://www.purebasic.fr/english/viewtopic.php?f=5&t=68772
Page 1 of 1

Author:  IdeasVacuum [ Sat Jul 15, 2017 10:41 pm ]
Post subject:  ParseDate limited to 2037

PB5.6 Win7x86
Hmm:
Success
Code:
sCurrentDate.s = "19/04/2037"
Debug ParseDate("%dd/%mm/%yyyy",sCurrentDate)

Failure
Code:
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......

Author:  Sicro [ Sat Jul 15, 2017 10:50 pm ]
Post subject:  Re: ParseDate limited to 2037

Quote:
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-CodeArchiv-Rebirth/tree/master/Date

Author:  IdeasVacuum [ Sun Jul 16, 2017 12:36 am ]
Post subject:  Re: ParseDate limited to 2037

That is a cool selection of time toys Sicro, thanks 8)

Author:  Dude [ Sun Jul 16, 2017 1:43 am ]
Post subject:  Re: ParseDate limited to 2037

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.

Author:  Sicro [ Sun Jul 16, 2017 10:44 am ]
Post subject:  Re: ParseDate limited to 2037

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.

Author:  netmaestro [ Mon Jul 17, 2017 6:41 am ]
Post subject:  Re: ParseDate limited to 2037

This may be of interest to you:http://www.purebasic.fr/english/viewtopic.php?f=12&t=56031

Author:  IdeasVacuum [ Mon Jul 17, 2017 11:18 am ]
Post subject:  Re: ParseDate limited to 2037

It is very interesting - especially the contribution from another frog!

Author:  CONVERT [ Sat Nov 04, 2017 12:28 pm ]
Post subject:  Re: ParseDate limited to 2037

Thanks to netmaestro and wilbert (viewtopic.php?f=12&t=56031)

I agree: PureBasic really needs to support this natively.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/