summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-25 15:54:40 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-25 15:54:40 +0200
commit4683eebc624a8a1be89d6216a3f39b35a8bce943 (patch)
tree4fb2b8c3057d385fb0933fda0e1da238065a1105 /bin
parent17a2ac7859c156257ad424651f08a9a1c174524c (diff)
efa: --date: Make the year optional
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index 8af3568..93c1d9c 100755
--- a/bin/efa
+++ b/bin/efa
@@ -192,6 +192,7 @@ if ($time) {
}
if ($date) {
@post{'itdDateDay','itdDateMonth','itdDateYear'} = split(/\./, $date);
+ $post{itdDateYear} //= (localtime(time))[5] + 1900;
}
if (@exclude) {
@@ -358,7 +359,7 @@ Journey start time
Journey end time (overrides --time/--depart)
-=item B<--date> I<dd>.I<mm>.I<yyyy>
+=item B<--date> I<dd>.I<mm>.[I<yyyy>]
Journey date