Dear people,
I'm creating a project to account for my hours spent on projects.
I have a iniread which reads the time from ini in hh:mm:ss
Now I need to format the time properly and add time (which varies in hours, minus and seconds)
How can this be done?
Thanks allot
Read time from ini, format time and then add time.
-
- Posts: 13
- Joined: 22 Nov 2019, 04:23
-
- Posts: 46
- Joined: 04 Dec 2017, 00:11
Re: Read time from ini, format time and then add time.
Hi,
To help you, we need more information and example script at least would be nice, there are some ways we can do what you ask for.
To help you, we need more information and example script at least would be nice, there are some ways we can do what you ask for.
Re: Read time from ini, format time and then add time.
Code: Select all
/*
[Default]
time=09:19:52
*/
IniRead, tm, %A_ScriptFullPath%, Default, time
v := "19000101" RegExReplace(tm,":")
v += 05, Hours
v += 10, Minutes
v += 20, Seconds
FormatTime, tm1, %v%, HH:mm:ss
MsgBox % tm "`n" tm1
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Who is online
Users browsing this forum: Bing [Bot], Marium0505, mcl and 351 guests