A very useful additional output format for date, time and timestamp information would be that of the internal variable _DATETIME, i.e., zero-padded fixed width elements in hierarchical order, NO separators. A single new output format code could serve all cases, e.g., 260.
In many of my TCC programs I need all of the individual elements of date and time ("now", a past event or a filestamp) in fixed-width format, one at a time. It is very time consuming (esp. with @FILESTAMP) to obtain them individually. I usually obtain the date and time once, save it in a variable, and parse it. A method that makes all of them accessible at once would save lots of work. Here are some possible ways of doing it:
1/ setting elements of a previously defined array whose name is provided by the user
2/ setting internal variables for each element
3/ setting elements of an array defined when the plugin is loaded
The advantage of methods 2 and 3 is that they could be done ALWAYS, transparently to the user.
A very useful function would convert AM/PM to 24-h time. Currently I use a cumbersome batch file, invoked by a UDF - very slow! Just an enhanced version of the built-in @TIME function to accept 12-h time would be sufficient - I could just use %@maketime[%@time[x]] to perform the desired conversion.
Note: Thanks for your plugins! Great timesavers!
--
Steve
In many of my TCC programs I need all of the individual elements of date and time ("now", a past event or a filestamp) in fixed-width format, one at a time. It is very time consuming (esp. with @FILESTAMP) to obtain them individually. I usually obtain the date and time once, save it in a variable, and parse it. A method that makes all of them accessible at once would save lots of work. Here are some possible ways of doing it:
1/ setting elements of a previously defined array whose name is provided by the user
2/ setting internal variables for each element
3/ setting elements of an array defined when the plugin is loaded
The advantage of methods 2 and 3 is that they could be done ALWAYS, transparently to the user.
A very useful function would convert AM/PM to 24-h time. Currently I use a cumbersome batch file, invoked by a UDF - very slow! Just an enhanced version of the built-in @TIME function to accept 12-h time would be sufficient - I could just use %@maketime[%@time[x]] to perform the desired conversion.
Note: Thanks for your plugins! Great timesavers!
--
Steve