SC <date> and milliseconds?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC <date> and milliseconds?

Post by Filehero »

admin wrote:... but I have to admit I got used it myself and was surprised that ...
For me it was the other way round. I was quoting them all the time. But as I've read repeatedly it's not required for XY native vars I finally started to get used to. I even have adopted my syntax highlighting rules accordingly.
admin wrote:After releasing 18.60.0100 I will try to improve the situation...
Thanks. :D

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

Re: SC <date> and milliseconds?

Post by PeterH »

In general it's correct: exceptions often are not good.

But, hoping that I am right:
- inside <...> no variables seem to be allowed
- without a variable any concatenation doesn't make sense (what would you concatenate?)
- so after all: everything inside <...> could be interpreted just literally

This would mean: Syntax definition can be changed so that everything between <...> is treated just as a string, like between '...'.
No: that's no exception - it's a syntax rule saying "between <...> there are strings", like between '...'.
(I compare to single quotes at will - as they don't allow variable substitution, unlike double quotes.)
(While unquoted $a = text; or many function operands are exceptions. :whistle: )

If I missed some "exception": please tell :P
Win11 Pro 223H2 Gerrman

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC <date> and milliseconds?

Post by Filehero »

Thanks for removing the quote-constraint, Don. :)

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

Re: SC <date> and milliseconds?

Post by admin »

Well, just saw it's not perfect. This does not work:

Code: Select all

echo <date hh:nn:ss.fff>.<date hh:nn:ss.fff>;
Not sure if I can fix that...

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

Re: SC <date> and milliseconds?

Post by admin »

Well, I think I could fix it. :beer:

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: SC <date> and milliseconds?

Post by highend »

Thanks, good job!
One of my scripts helped you out? Please donate via Paypal

Post Reply