You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
The included Macro Deck variable of "time" outputs time in a format like HH:MM AM/PM (e.g. 12:32 PM). When this is passed into the Cottle template using the format built-in, it doesn't have access to the seconds. There doesn't appear to be a native way to get a seconds based time value.
Why is this useful
Use Example: I have a profile configured so that when a button is pressed it goes to another folder which simulates a submenu (think a commo-rose like menu, if you're a gamer). For it to function properly (with a timeout to auto go back), I needed a seconds based timestamp. My hacky method is listed below, but it'd be far easier to be able to have a {time_epoch} based Macro Deck variable available.
Describe alternatives you've considered
My method for adding this (without creating a plugin) is pictured below, using a WinUtils -> Command to grab the time-variable available there, it adds a lot of extra steps, and is less elegant (and/or less user friendly).
This discussion was converted from issue #356 on January 25, 2023 18:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is your feature request related to a problem? Please describe.
N/A
Describe the solution you'd like
The included Macro Deck variable of "time" outputs time in a format like HH:MM AM/PM (e.g. 12:32 PM). When this is passed into the Cottle template using the format built-in, it doesn't have access to the seconds. There doesn't appear to be a native way to get a seconds based time value.
Why is this useful
Use Example: I have a profile configured so that when a button is pressed it goes to another folder which simulates a submenu (think a commo-rose like menu, if you're a gamer). For it to function properly (with a timeout to auto go back), I needed a seconds based timestamp. My hacky method is listed below, but it'd be far easier to be able to have a {time_epoch} based Macro Deck variable available.
Describe alternatives you've considered
My method for adding this (without creating a plugin) is pictured below, using a WinUtils -> Command to grab the time-variable available there, it adds a lot of extra steps, and is less elegant (and/or less user friendly).
echo %time% sets a intermediary time variable
Beta Was this translation helpful? Give feedback.
All reactions