I'm trying to insert a timestamp as part of a file name and I realized that there is something basic about a timestamp that I do not understand:
Assume the output for echo %time% is 16:13:07.91.
Why is echo %time:~3,2% equal to 13? Does the colon not count as a character? In %date% the slash (/) does count as a character.
Assume the output for echo %time% is 16:13:07.91.
Why is echo %time:~3,2% equal to 13? Does the colon not count as a character? In %date% the slash (/) does count as a character.
Last edited:
My Computer
System One
-
- OS
- Windows 8