Remove newline from date output

This commit is contained in:
Jeffrey Serio 2024-08-20 23:22:48 -05:00
parent d92d4a4326
commit 475c8f2201

View File

@ -179,13 +179,13 @@ function dstack() {
# Print timestamp as %Y-%m-%d %H:%M:%S.
function tstamp() {
emulate -L zsh
date '+%Y-%m-%d %H:%M:%S'
date '+%Y-%m-%d %H:%M:%S' | tr -d '\n'
}
# Print timestamp as %Y-%m-%dT%H:%M:%S%:z
function tstampz() {
emulate -L zsh
date '+%Y-%m-%dT%H:%M:%S%:z'
date '+%Y-%m-%dT%H:%M:%S%:z' | tr -d '\n'
}
# Create a /overview/ of all available function()'s; the description for