Merge branch 'master' of hrunkner.hjp.at:git/simple
This commit is contained in:
commit
b58b1b1dc5
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "\$(BINDIR)/%: %"
|
echo "\$(BINDIR)/%: %"
|
||||||
echo -e "\tcp \$^ \$@"
|
echo " cp \$^ \$@"
|
||||||
|
|
16
tiny/isodate
16
tiny/isodate
|
@ -1,2 +1,14 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/perl
|
||||||
date '+%Y-%m-%dT%H:%M:%S'
|
use v5.10;
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
use Getopt::Long;
|
||||||
|
use POSIX qw(strftime);
|
||||||
|
use Pod::Usage;
|
||||||
|
my $mssafe;
|
||||||
|
GetOptions(
|
||||||
|
"mssafe" => \$mssafe
|
||||||
|
) or pod2usage(1);
|
||||||
|
|
||||||
|
my $fmt = $mssafe ? "%Y-%m-%dT%H-%M-%S" : "%Y-%m-%dT%H:%M:%S";
|
||||||
|
say strftime($fmt, localtime);
|
||||||
|
|
Loading…
Reference in New Issue