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 » Sun Oct 16, 2016 12:24 pm

Is Everything can display the time in the format: HH:mm:ss:ms:ns (milliseconds and nanoseconds)

void
Site Admin
Posts: 4978
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post by void » Mon Oct 17, 2016 6:28 am

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 » Mon Oct 17, 2016 12:37 pm

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
Site Admin
Posts: 4978
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post by void » Mon Oct 17, 2016 12:49 pm

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 » Mon Oct 17, 2016 1:16 pm

I thought that it can display the milliseconds and nanoseconds if Windows just keeps time. Too bad.

horst.epp
Posts: 194
Joined: Fri Apr 04, 2014 3:24 pm

Re: time_format

Post by horst.epp » Mon Oct 17, 2016 2:16 pm

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: 19
Joined: Thu Aug 18, 2016 12:36 pm

Re: time_format

Post by jazmomo » Mon Oct 17, 2016 3:15 pm

nanoseconds? seriously... some people. :?
how about yoctoseconds?

therube
Posts: 2367
Joined: Thu Sep 03, 2009 6:48 pm

Re: time_format

Post by therube » Mon Oct 17, 2016 4:06 pm

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
Site Admin
Posts: 4978
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post by void » Mon Oct 17, 2016 7:51 pm

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: 194
Joined: Fri Apr 04, 2014 3:24 pm

Re: time_format

Post by horst.epp » Tue Oct 18, 2016 12:16 pm

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 » Tue Oct 18, 2016 1:52 pm

It fits me option in the ini - only if you can ":sss" instead of ".sss"

therube
Posts: 2367
Joined: Thu Sep 03, 2009 6:48 pm

Re: time_format

Post by therube » Tue Oct 18, 2016 2:32 pm

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
Site Admin
Posts: 4978
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post by void » Wed Oct 19, 2016 6:55 am

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 » Thu Oct 20, 2016 1:33 pm

Thanks a lot ,It's working well.

salazor
Posts: 258
Joined: Tue Jun 17, 2014 10:52 am

Re: time_format

Post by salazor » Fri Oct 21, 2016 12:13 pm

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
Site Admin
Posts: 4978
Joined: Fri Oct 16, 2009 11:31 pm

Re: time_format

Post by void » Fri Oct 21, 2016 2:44 pm

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