How to get current time of the day in seconds? Topic is solved
How to get current time of the day in seconds?
How to get current time of the day in seconds? I mean to get something like: 600 , which means that current time is 00:10 AM.
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
Re: How to get current time of the day in seconds? Topic is solved
Here are two examples.
Code: Select all
q:: ;time at 00:10 AM (seconds)
vDate := SubStr(A_Now, 1, 8) "001000"
FormatTime, vDate, % vDate, HH:mm:ss
oTemp := StrSplit(vDate, ":")
vSec := oTemp.1*3600+oTemp.2*60+oTemp.3
MsgBox, % vSec
return
w:: ;time now (seconds)
FormatTime, vDate,, HH:mm:ss
oTemp := StrSplit(vDate, ":")
vSec := oTemp.1*3600+oTemp.2*60+oTemp.3
MsgBox, % vSec
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: How to get current time of the day in seconds?
jeeswg
Thank you
Thank you
DRAKON-AutoHotkey: Visual programming for AutoHotkey.
Who is online
Users browsing this forum: skeerrt and 159 guests