time_format

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

time_format

Post by salazor »

Is Everything can display the time in the format: HH:mm:ss:ms:ns (milliseconds and nanoseconds)
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post 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
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post 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
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post 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.
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post by salazor »

I thought that it can display the milliseconds and nanoseconds if Windows just keeps time. Too bad.
horst.epp
Posts: 1451
Joined: Fri Apr 04, 2014 3:24 pm

Re: time_format

Post 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 :)
jazmomo
Posts: 20
Joined: Thu Aug 18, 2016 12:36 pm

Re: time_format

Post by jazmomo »

nanoseconds? seriously... some people. :?
how about yoctoseconds?
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: time_format

Post 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 ;-).
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post 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?
horst.epp
Posts: 1451
Joined: Fri Apr 04, 2014 3:24 pm

Re: time_format

Post 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.
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post by salazor »

It fits me option in the ini - only if you can ":sss" instead of ".sss"
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: time_format

Post 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.)
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post 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
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post by salazor »

Thanks a lot ,It's working well.
salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post 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 :?:
void
Developer
Posts: 16841
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post 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.
Post Reply