TheWhistler commented on a Page, Show age and time until birthday  -  Oct 11, 2011

alias age { age { set -l %b FEB 28 1944 10:00:00 | set -l %secs $calc($ctime - $ctime(%b $iif($regex(%b,\d\d:\d\d:\d\d),,00:00:00))) | set -l %years $calc(%secs /31556926) | set -l %nb $regsubex(%b,\d\d\d\d,$calc($date(yyyy) $iif($floor(%years) = $calc($date(yyyy) - $date($ctime(%b),yyyy)),+ 1,))) $iif($regex(%b,(\d\d:\d\d:\d\d)),,00:00:00) | me is %secs seconds old which is %years years, in $duration($calc($ctime(%nb) - $ctime)) $me will be $calc($int(%years) +1) on %nb }

[» Tue Oct 11 | 09:40:09 pm «] * ~RedBeard is 1318383609 seconds old which is 41.777948 years, in -1318383609secs RedBeard will be 42 on 0 00:00:00

Jethro thats what i did and got the same

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.