Page 1 of 1

time_format

Posted: Sun Oct 16, 2016 12:24 pm
by salazor
Is Everything can display the time in the format: HH:mm:ss:ms:ns (milliseconds and nanoseconds)

Re: time_format

Posted: Mon Oct 17, 2016 6:28 am
by void
Only Hours, minutes and seconds:

Code: Select all

h   Hours with no leading zero for single-digit hours; 12-hour clock
hh  Hours with leading zero for single-digit hours; 12-hour clock
H   Hours with no leading zero for single-digit hours; 24-hour clock
HH  Hours with leading zero for single-digit hours; 24-hour clock
m   Minutes with no leading zero for single-digit minutes
mm  Minutes with leading zero for single-digit minutes
s   Seconds with no leading zero for single-digit seconds
ss  Seconds with leading zero for single-digit seconds
t   One character time marker string, such as A or P
tt  Multi-character time marker string, such as AM or PM

Re: time_format

Posted: Mon Oct 17, 2016 12:37 pm
by salazor
A Help file is the entry:

Code: Select all

YYYY[-MM[-DD[THH[:MM[:SS[.sss]]]]]]
- what does it mean?

Code: Select all

.sss

Re: time_format

Posted: Mon Oct 17, 2016 12:49 pm
by void
This format is for searching for dates, not displaying dates.

it's actually ss.sss, meaning you can use a decimal place in the seconds.

https://en.wikipedia.org/wiki/ISO_8601

Everything only supports 3 decimal places after seconds, ie: milliseconds.

Re: time_format

Posted: Mon Oct 17, 2016 1:16 pm
by salazor
I thought that it can display the milliseconds and nanoseconds if Windows just keeps time. Too bad.

Re: time_format

Posted: Mon Oct 17, 2016 2:16 pm
by horst.epp
salazor wrote:I thought that it can display the milliseconds and nanoseconds if Windows just keeps time. Too bad.
I guess you urgently need the nanoseconds of file time :)

Re: time_format

Posted: Mon Oct 17, 2016 3:15 pm
by jazmomo
nanoseconds? seriously... some people. :?
how about yoctoseconds?

Re: time_format

Posted: Mon Oct 17, 2016 4:06 pm
by therube
YYYY[-MM[-DD[THH[:MM[:SS[.sss]]]]]]
I'll suspect that was added when added iso 8601 syntax for dates and time was recently added.
And the quoted text was just copied verbatim, from somewhere, even though the :SS.sss aren't actually being used. (Oh, I see, void already explained that.)
yoctoseconds
Heh.
I had to look that one up. Guess we have a scientist in our midst ;-).

Re: time_format

Posted: Mon Oct 17, 2016 7:51 pm
by void
Everything uses the OS function GetTimeFormat to format time. The limitation lies with that call. Everything would need to implement it's own time formatting to display milliseconds, microseconds or nanoseconds.

Everything stores dates and times as FILETIMEs with 100-nanosecond accuracy, so it's more than capable of displaying milliseconds, microseconds and even some nanosecond information.

GetTimeFormat uses SYSTEMTIMEs to format times.
Resolution is lost when converting from FILETIMEs to SYSTEMTIMEs, SYSTEMTIMEs only have millisecond accuracy.

How about a simple ini flag that lets you append the milliseconds as .sss?

Re: time_format

Posted: Tue Oct 18, 2016 12:16 pm
by horst.epp
void wrote:Everything uses the OS function GetTimeFormat to format time. The limitation lies with that call. Everything would need to implement it's own time formatting to display milliseconds, microseconds or nanoseconds.

Everything stores dates and times as FILETIMEs with 100-nanosecond accuracy, so it's more than capable of displaying milliseconds, microseconds and even some nanosecond information.

GetTimeFormat uses SYSTEMTIMEs to format times.
Resolution is lost when converting from FILETIMEs to SYSTEMTIMEs, SYSTEMTIMEs only have millisecond accuracy.

How about a simple ini flag that lets you append the milliseconds as .sss?
I don't see the real need for displaying milliseconds but an ini flag is fine for time freaks.

Re: time_format

Posted: Tue Oct 18, 2016 1:52 pm
by salazor
It fits me option in the ini - only if you can ":sss" instead of ".sss"

Re: time_format

Posted: Tue Oct 18, 2016 2:32 pm
by therube
Got to ask, what's your use case for milliseconds?
And why do you want :sss rather then (I'm guessing what is standard) .sss?

(Suppose its actually .mmm.)

Re: time_format

Posted: Wed Oct 19, 2016 6:55 am
by void
Added support for SSS (milliseconds) to the time_format ini setting.

There is one limitation: SSS MUST appear at the end of the format!
For example:
hh:mm:ss.SSS

Please note: not all files have millisecond information, eg: files from FAT volumes, certain unzipped files.

http://www.voidtools.com/Everything-1.4.1.777b.x86.zip
http://www.voidtools.com/Everything-1.4.1.777b.x64.zip

Re: time_format

Posted: Thu Oct 20, 2016 1:33 pm
by salazor
Thanks a lot ,It's working well.

Re: time_format

Posted: Fri Oct 21, 2016 12:13 pm
by salazor
Interesting - on FAT actually not shows milliseconds (which I knew) - but for the modification date, and for a creation date millisecond are displayed. :o

Could creation date on the FAT was recorded as FILETIMEs :?:

Re: time_format

Posted: Fri Oct 21, 2016 2:44 pm
by void
Date modified has a resolution of 2 seconds.
Creation date has a slightly higher resolution of 10ms.

https://en.wikipedia.org/wiki/File_Allocation_Table
Under date resolution.