view bin/datei @ 12509:2255eb45a711 draft default tip

<wib_jonas> `` </hackenv/tmp/cmd.whatis tr -d \\\\r | grep cmd | cat -v >> /hackenv/share/whatis
author HackEso <hackeso@esolangs.org>
date Wed, 17 Jul 2024 14:42:40 +0100
parents 2c465d82bec1
children
line wrap: on
line source

#!/bin/bash
set -e
if (( 1 < $# )); then echo "datei error: too many command-line arguments. Usage: datei datetimestring"; exit 2; fi
exec date ${1:+-d "$1"} "+%Y-%m-%d %H:%M:%S.%3N %z %Z %B %-e %A %G-W%V-%u"