Fine.
text formatdate(, "yyyy-mm-dd, hhnnss");
gives me
2014-03-13, 005417
-but how do I get the opposite, ie, retrieve what are the current format and separators from a system according to regional settings?
I'm doing it the hardest way possible with a very complicated algorithm to guess what is what, but there should be an easier way.
By the way,
text formatdate(, "yyyy-mm-dd, hh" . 'h' . "nn" . 'm' . "ss" . 's'); // last time I checked single quotes should NOT resolve but in this case they are - no idea why...
// pops '2014-03-13, 0005431717' instead of '2014-03-13, 00h54m17s'
Method - How to Retrieve Date and Time Formats?
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Method - How to Retrieve Date and Time Formats?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: Method - How to Retrieve Date and Time Formats?
I remember, but I could be wrong, something along the lines of <get something> for retrieving the decimal separator, but looks like its undocumented and can't find any reference on the forum...
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Re: Method - How to Retrieve Date and Time Formats?
text formatdate(, "yyyy-mm-dd, hh\hnn\mss\s");SkyFrontier wrote:By the way,
text formatdate(, "yyyy-mm-dd, hh" . 'h' . "nn" . 'm' . "ss" . 's'); // last time I checked single quotes should NOT resolve but in this case they are - no idea why...
// pops '2014-03-13, 0005431717' instead of '2014-03-13, 00h54m17s'
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Method - How to Retrieve Date and Time Formats?
// Decimal Separator:
echo get("locale", 14);
LOCALE_SDECIMAL = 14
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
You got to find a list of those value in the net...
echo get("locale", 14);
LOCALE_SDECIMAL = 14
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
You got to find a list of those value in the net...
FAQ | XY News RSS | XY Twitter
Re: Method - How to Retrieve Date and Time Formats?
See Proof of concept script over there >>> http://www.xyplorer.com/xyfc/viewtopic. ... 227#p96227 , down at the Status Quo line.SkyFrontier wrote:-but how do I ... retrieve what are the current format and separators from a system according to regional settings?
.
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Method - How to Retrieve Date and Time Formats?
Thanks for all the tips, people! Very much!
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...