Msecs "reloaded"

Features wanted...
Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Msecs "reloaded"

Post by Marco »

Not exactly a wish, but...
I was wondering if msecs will get the documented status one day, and maybe be part of functions like report.
Oh, and if will also evolve in nsecs, so to support the full time resolution of NTFS :om: :cup: :biggrin:
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

I'd like to do it but I wonder about the demand. Will it pass the bloat filter? Give me a good reason to add it. Usage! :cup:

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: Msecs "reloaded"

Post by Marco »

Yup, you're right about the demand aspect and the bloat filter.
I can't think of "extremely good" reasons for nsecs, but a mildly good reason for wider implementation of msecs is: why crippling it to info panel only?
It clashes with the expectation of doing a thing (millisecond-accurate timestamping) regardless of the mean used (UI or scripting). For a carefully designed piece of software like XY, focused on usability, this should be enough a reason.

Well, on a second thought about nsecs...
1. You'd be the first to implement it :D
2. A possibility is not bloat. Software that do things outside their scope are bloated. Timestamping is file management. XYplorer is a file manager.

PS: should you ever accept the changelled and delve into it, this might help http://vb.mvps.org/hardcore/html/filedatestimes.htm
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

You'd be the first to implement it...
You know which buttons to push... :biggrin: I'll think about it. Currently busy with other tricky things... :blackstorm:

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

Done. :cup: :biggrin:

grindax

Re: Msecs "reloaded"

Post by grindax »

.
Last edited by grindax on 22 Jan 2016 23:11, edited 1 time in total.

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

grindax wrote:Very nice. It's comforting to know that that kind of precision is now there if needed. Presumably sorting by timestamp will always take the milliseconds into account even when they're not currently being displayed in the date columns?
Sure! Even down to the 100-nanoseconds! Sorting by time is always maximally precise, independently of the display. Not my merit but built into the Windows time sorting API.

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: Msecs "reloaded"

Post by Marco »

admin wrote:Done. :cup: :biggrin:
:appl: :appl: :om: :om: :cup: :cup:
But please pay attention to the daily caloric intake now, I don't want my coffees and omelettes to be the cause of someone's diabetes :mrgreen:

PS: I totally agree with grindax. Precision makes XY reliable. And that's a great adjective, in my opinion.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: Msecs "reloaded"

Post by Marco »

Could datediff() or compare() support milliseconds too? Actually, just one of those would be enough. (I have a little script that picks the three dates of a file and then sets all them to the earliest one. Yep, I'm that paranoid :biggrin: )

PS: I notice that the recent addition of UTC times and milliseconds can introduce new usage possibilities and syntax pitfalls in functions handling dates. I'll do some tests, if you think it's necessary/worth. One for sure tho, timestamp() seems to handle every combination smoothly.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

binocular222
Posts: 1416
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

Re: Msecs "reloaded"

Post by binocular222 »

Any idea for usage of this new feature?
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: Msecs "reloaded"

Post by Marco »

I could think of softwares or particular workflows (log files, tech systems) that write many files in a row, each one with a different name but not necessarily in alphabetic order (I mean, the chronological order of creation is different from the alphabetic order of the whole set of files).
If the computer is quite fast those files can result being written at the same instant. With a millisecond resolution you can differentiate.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

Marco wrote:Could datediff() or compare() support milliseconds too? Actually, just one of those would be enough. (I have a little script that picks the three dates of a file and then sets all them to the earliest one. Yep, I'm that paranoid :biggrin: )

PS: I notice that the recent addition of UTC times and milliseconds can introduce new usage possibilities and syntax pitfalls in functions handling dates. I'll do some tests, if you think it's necessary/worth. One for sure tho, timestamp() seems to handle every combination smoothly.
Yes, I think I can do that.

Yes, go ahead. But wait for the next beta. I fixed some glitches... (and added some complications).

PeterH
Posts: 2785
Joined: 21 Nov 2005 20:39
Location: Germany

Re: Msecs "reloaded"

Post by PeterH »

Beta doc of 12.40.0302 says:

Code: Select all

   + SC report: Now milliseconds are supported. Examples:
        echo now("fff");
        echo now("yyyy-mm-dd hh:nn:ss.fff");
It seems this isn't SC report :roll: :bug:
Win11 Pro 223H2 Gerrman

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

:) tnx

admin
Site Admin
Posts: 60602
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Msecs "reloaded"

Post by admin »

FYI, this little script proves that the modified time is precise down to the millisecond (tested under XP; "Show Milliseconds" = ON to compare the timestamp with the "Now" time). Run it in any temp folder:

Code: Select all

// modified time test
  writefile("test.txt", "test");
  echo now("yyyy-mm-dd hh:nn:ss.fff");
BTW, anybody here interested in microsecond time stamping? :biggrin:

Post Reply