Msecs "reloaded"
Msecs "reloaded"
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
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
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Msecs "reloaded"
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!
FAQ | XY News RSS | XY Twitter
Re: Msecs "reloaded"
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
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
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
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]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Msecs "reloaded"
You know which buttons to push... I'll think about it. Currently busy with other tricky things...You'd be the first to implement it...
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Msecs "reloaded"
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.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?
FAQ | XY News RSS | XY Twitter
Re: Msecs "reloaded"
admin wrote:Done.
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
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]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Re: Msecs "reloaded"
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 )
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.
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]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Msecs "reloaded"
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
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Msecs "reloaded"
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.
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]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Msecs "reloaded"
Yes, I think I can do that.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 )
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, go ahead. But wait for the next beta. I fixed some glitches... (and added some complications).
FAQ | XY News RSS | XY Twitter
Re: Msecs "reloaded"
Beta doc of 12.40.0302 says:It seems this isn't SC report
Code: Select all
+ SC report: Now milliseconds are supported. Examples:
echo now("fff");
echo now("yyyy-mm-dd hh:nn:ss.fff");
Win11 Pro 223H2 Gerrman
-
- Site Admin
- Posts: 60602
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Msecs "reloaded"
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:
BTW, anybody here interested in microsecond time stamping?
Code: Select all
// modified time test
writefile("test.txt", "test");
echo now("yyyy-mm-dd hh:nn:ss.fff");
FAQ | XY News RSS | XY Twitter