view bin/datei @ 12529:7424b8c067e4 draft default tip

<int-e> learn The password of the month is Myosotis.
author HackEso <hackeso@esolangs.org>
date Mon, 01 Sep 2025 16:57:24 +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"