Mercurial > repo
annotate bin/dateu @ 11761:1e5c15d8a461 draft
<oerjan> le/rn abelian group//An abelian group is a group that spends all its time commuting, and therefore never does any real work.
author | HackEso <hackeso@esolangs.org> |
---|---|
date | Wed, 27 Mar 2019 23:24:14 +0000 |
parents | 06331fefa90d |
children | 7749e14b2064 |
rev | line source |
---|---|
6473
8e8662d8cbda
<b_jonas> `` echo $\'#!/bin/sh\\nexec date --rfc-3=n -u "$@"\' > bin/dateu && chmod a+x bin/dateu
HackBot
parents:
diff
changeset
|
1 #!/bin/sh |
11688
06331fefa90d
<b_jonas> perl -e for $e ("i","u"){ $f="bin/date$e"; open my$i,"<",$f or die "error open $f r"; local$/; $s=<$i> or die; $s=~s/"\\+%Y/\\${1:+-d "\\$1"} $&/ or die; open $o,">",$f or die "error open $f w: $!"; print $o $s or die; close $o or die; print "OK $f\\n" }
HackEso <hackeso@esolangs.org>
parents:
11687
diff
changeset
|
2 exec date -u ${1:+-d "$1"} "+%Y-%m-%d %H:%M:%S.%N %z %Z %B %-e %A %G-W%V-%u" |