Hi! I am writing some data processing that requires tenths of seconds in the timestamps.
The %f format for microseconds does not seem to work with strftime and strptime. This little program:
// ===================================================================
// ==> wheref: %f does not work
// ===================================================================
use DateTime;
var now = datetime.now();
writeln(now.strftime("%H:%M:%S.%f"));
writef("%06i\n",now.microsecond);
exit(0);
prints
18:47:11.%f
013328
So it is interpreting %f literally … when it should be printing 18:47:11.013328
If there is a workaround, or if the format specifier is different, I would be glad to know.
Cheers Nelson