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
I would love to see an option to customize the format of the $TIME (like for including seconds), and a way to also show the current date, where a customizable format is pretty much necessary as there's different standards for that in different countries.
One way to handle this would be to just add a $DATE variable, and to take the format options for both as options in the config.
Another would be to create a more complex system which would allow specifying the format in the variable, like say $DATETIME[%HH:%MM:%SS]. This option would be better in case someone wanted to show the time multiple times with different formats, but it'd probably be much more complex to actually implement.
The text was updated successfully, but these errors were encountered:
ItsDrike
changed the title
Datetime variables with custom format
[REQ] Datetime variables with custom format
Feb 21, 2024
Not sure if this is still relevant since we now have commands, and can just do text = cmd[update:200] date +'%H:%M:%S' . It'd still be a bit nicer and bit easier to use maybe, but not sure it'd be worth the hassle to implement. Feel free to close.
The only annoyance with using cmds to show time is you can't use 1s update intervals, since the interval doesn't start at a "whole" second, so it could sometimes skip by 2 seconds, which looks bad.
I would love to see an option to customize the format of the
$TIME
(like for including seconds), and a way to also show the current date, where a customizable format is pretty much necessary as there's different standards for that in different countries.One way to handle this would be to just add a
$DATE
variable, and to take the format options for both as options in the config.Another would be to create a more complex system which would allow specifying the format in the variable, like say
$DATETIME[%HH:%MM:%SS]
. This option would be better in case someone wanted to show the time multiple times with different formats, but it'd probably be much more complex to actually implement.The text was updated successfully, but these errors were encountered: