old_contents: """ 
  Age Calculator
  """
  
  from .util.decorators import command, initializer
  import datetime
  import time
  import re
  
  
  @command('ageme')
  def insult(bot, nick, target, chan, arg):
      """ Find exact age """
      if not arg:
          return bot.msg(chan, insult.__doc__.strip())
  
      prec = '16'
      args = arg.split()
      if len(args) == 3:
          (day, month, year) = args
      elif len(args) == 4:
          (day, month, year, prec) = args
      elif len(args) == 5:
          (day, month, year, prec, chan) = args
      else:
          return bot.msg(chan, "USAGE: +ageme day month year [prec] [target]")
  
      age = ("%."+prec+"f")%((time.time() - time.mktime(datetime.date(int(year), int(month), int(day)).timetuple()))/(60*60*24*365))
  
      bot._msg(chan, "*%s is %s years old*" % (nick, age))
  
new_contents: """ 
  Age Calculator
  """
  
  from .util.decorators import command, initializer
  import datetime
  import time
  import re
  
  
  @command('ageme')
  def insult(bot, nick, target, chan, arg):
      """ Find exact age """
      if not arg:
          return bot.msg(chan, insult.__doc__.strip())
  
      prec = '16'
      args = arg.split()
      if len(args) == 3:
          (day, month, year) = args
      elif len(args) == 4:
          (day, month, year, prec) = args
      elif len(args) == 5:
          (day, month, year, prec, chan) = args
      else:
          return bot.msg(chan, "USAGE: +ageme day month year [prec] [target]")
  
      age = ("%."+prec+"f")%((time.time() - time.mktime(datetime.date(int(year), int(month), int(day)).timetuple()))/(60*60*24*365.242))
  
      bot._msg(chan, "*%s is %s years old*" % (nick, age))
  
subject: Fix for leap years