DateStamp ISO format
Posted: Thu Nov 27, 2014 5:24 pm
According to SDK:Include/include_h/dos/datetime.h dos recognizes the following formats
#define FORMAT_DOS 0 / * dd-mmm-yy * /
#define FORMAT_INT 1 / * yy-mmm-dd * /
#define FORMAT_USA 2 / * mm-dd-yy * /
#define FORMAT_CDN 3 / * dd-mm-yy * /
#define FORMAT_DEF 4 / * use default format, as defined
#define FORMAT_ISO 5 / * yyyy-mm-dd (ISO 8601)
Requires locale V48 or dos V50.36
if locale not available * /
I added the recognition of those formats in Gui4cli OS4 version
The result is not conform with this specification for the ISo format
eg
2006-12-9 guis:Docs/Tutorials/LVStyles.gc
2014-11-27 guic:Template.gc
2010-6-4 dir:Keyscreen.gc
2014-11-12 guic:/Tools/Config.gc
2014-8-6 guic:Rexxgui.gc
2014-11-27 guic:/Gui4Cli.prefs
is a selection of files to which their date was added in front using a simple Gui4Cli script
sorting them puts
2014-11-27 guic:/Gui4Cli.prefs
2014-8-6 guic:Rexxgui.gc
Can this be improves so as to allow easy & correct sorting on date?
2014-08-06 guic:Rexxgui.gc
2014-11-27 guic:/Gui4Cli.prefs
#define FORMAT_DOS 0 / * dd-mmm-yy * /
#define FORMAT_INT 1 / * yy-mmm-dd * /
#define FORMAT_USA 2 / * mm-dd-yy * /
#define FORMAT_CDN 3 / * dd-mm-yy * /
#define FORMAT_DEF 4 / * use default format, as defined
#define FORMAT_ISO 5 / * yyyy-mm-dd (ISO 8601)
Requires locale V48 or dos V50.36
if locale not available * /
I added the recognition of those formats in Gui4cli OS4 version
The result is not conform with this specification for the ISo format
eg
2006-12-9 guis:Docs/Tutorials/LVStyles.gc
2014-11-27 guic:Template.gc
2010-6-4 dir:Keyscreen.gc
2014-11-12 guic:/Tools/Config.gc
2014-8-6 guic:Rexxgui.gc
2014-11-27 guic:/Gui4Cli.prefs
is a selection of files to which their date was added in front using a simple Gui4Cli script
sorting them puts
2014-11-27 guic:/Gui4Cli.prefs
2014-8-6 guic:Rexxgui.gc
Can this be improves so as to allow easy & correct sorting on date?
2014-08-06 guic:Rexxgui.gc
2014-11-27 guic:/Gui4Cli.prefs