miltime prints the current time in 24-hour format as “HH:MM”.
here’s the code:
#!/bin/zsh
echo "$(/bin/date '+%H:%M ')"
This is free and unencumbered software released into the public domain. For more information, please refer to https://unlicense.org/.