aboutsummaryrefslogtreecommitdiff
path: root/age
diff options
context:
space:
mode:
Diffstat (limited to 'age')
-rwxr-xr-xage8
1 files changed, 8 insertions, 0 deletions
diff --git a/age b/age
new file mode 100755
index 0000000..8be91b8
--- /dev/null
+++ b/age
@@ -0,0 +1,8 @@
+#!/bin/rc
+rfork ne
+bday=862048830 # % date -j -f "%b %d %Y" "Apr 26 1997" +%s
+today=`{date -n}
+
+bc <<EOF
+($today - $bday)/(3600*24*365)
+EOF