 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ghee22
Joined: 04 Jul 2009 Posts: 36
|
Posted: Sun Oct 11, 2009 9:15 pm Post subject: TimeDate variable, set seconds, minutes, hours |
|
|
Is there a way to change a datetime variable without adding or subtracting via EnvAdd or EnvSub?
For example, I'd like to copy A_Now's & only change minutes and seconds to 00:00. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
ghee22
Joined: 04 Jul 2009 Posts: 36
|
Posted: Mon Oct 12, 2009 2:25 pm Post subject: |
|
|
| HotKeyIt wrote: |
| Code: | Now:=SubStr(A_Now,1,10) . "0000"
MSgBox % A_Now "`n" Now |
|
Thanks, this did work for this particular example. Is there a function that is easier to read, like EnvAdd allows seconds, minutes to change seconds or minutes, respectively? |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|