How to get Time in 24 hours timeline
eg:- 2:00 PM = 14:00
Time in 24 hrs in batch file
Moderator: DosItHelp
Re: Time in 24 hrs in batch file
Why?
Sometimes the reason can make a different approach work.
But you can change your regional settings for the time/date in control panel.
Sometimes the reason can make a different approach work.
But you can change your regional settings for the time/date in control panel.
Re: Time in 24 hrs in batch file
My understanding was that the %TIME% variable was always 24 hour format the the TIME /T output only used the AM and PM.
I could be wrong though.
I could be wrong though.
Re: Time in 24 hrs in batch file
According to his previous thread it is the file last modified stamp that he's using.
Re: Time in 24 hrs in batch file
foxidrive wrote:According to his previous thread it is the file last modified stamp that he's using.
Yep. I just read that. Sorry.
Two options for that and you already pointed out one of them.
Either change the regional time settings in control panel or look at the AM/PM indicator and do the math!
Re: Time in 24 hrs in batch file
I guess that depends on regional settings, EU uses 24 hour format, always.Squashman wrote:the TIME /T output only used the AM and PM.
Code: Select all
>time /t
23:02
>dir
De volumenaam van station C is ROOT-NTFS-X
Het volumenummer is 4BB6-ACFF
Map van C:\PROFSYS\ADMIN
20/08/2012 19:44 <DIR> .