It is currently Thu Nov 23, 2017 11:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: ParseDate limited to 2037
PostPosted: Sat Jul 15, 2017 10:41 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5687
Location: Wales, UK
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......

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Sat Jul 15, 2017 10:50 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 167
Location: Germany
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

_________________
Image

PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!

Manjaro Cinnamon x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Sun Jul 16, 2017 12:36 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5687
Location: Wales, UK
That is a cool selection of time toys Sicro, thanks 8)

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Sun Jul 16, 2017 1:43 am 
Offline
Addict
Addict

Joined: Mon Feb 16, 2015 2:49 pm
Posts: 1027
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Sun Jul 16, 2017 10:44 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Jun 25, 2014 5:25 pm
Posts: 167
Location: Germany
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

PureBasic-CodeArchiv-Rebirth: Git-Repository / Download -- Any help is welcome!

Manjaro Cinnamon x64 (Main system) :: WindowsXP/Xubuntu x86 (VirtualBox) :: PureBasic (Linux: x86/x64, Windows: x86) :: All are up to date


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Mon Jul 17, 2017 6:41 am 
Offline
PureBasic Bullfrog
PureBasic Bullfrog
User avatar

Joined: Wed Jul 06, 2005 5:42 am
Posts: 7954
Location: Kelowna, BC, Canada
This may be of interest to you:http://www.purebasic.fr/english/viewtopic.php?f=12&t=56031

_________________
Veni, vidi, vici.


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Mon Jul 17, 2017 11:18 am 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 5687
Location: Wales, UK
It is very interesting - especially the contribution from another frog!

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: ParseDate limited to 2037
PostPosted: Sat Nov 04, 2017 12:28 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri May 02, 2003 12:19 pm
Posts: 111
Location: France
Thanks to netmaestro and wilbert (viewtopic.php?f=12&t=56031)

I agree: PureBasic really needs to support this natively.

_________________
PureBasic 5.61 32 bit | Windows 10 Home x32 | Dell Vostro 220s (desktop) x64


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye