All pastes #88758 Raw Edit

Someone

public text v1 · immutable
#88758 ·published 2006-07-15 08:58 UTC
rendered paste body
age {
  ; Change this to your birthday in the same format.
  var %bday = October 26, %year = 1988
  ; Do not edit this unless you know what you're doing.
  var %seconds = $calc($ctime - $ctime(%bday %year))
  var %timeu = $calc($ctime(%bday $asctime(yyyy)) - $ctime)
  var %timey = $calc($asctime(yyyy) - %year)
  if (%timeu < 0) {
    var %timeu = $calc($ctime(%bday $calc($asctime(yyyy) + 1)) - $ctime)
    var %timey = $calc($calc($asctime(yyyy) + 1) - %year)
  }
  me is exactly $calc(%seconds / 31536000) years old. It is exactly $duration(%timeu) until my %timey $+ th birthday
}