Author Topic: A Time-Since Variable  (Read 1560 times)

0 Members and 1 Guest are viewing this topic.

TheDefiant604

  • Youngling
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
  • Twitch Name: TheDefiant604
A Time-Since Variable
« on: January 17, 2017, 06:13:10 AM »
I would like to have a @countup@ or @timesince@ variable that would provide the time since a given date & time.  Ideally, the output would be in the form of years, months, days, hours.  This could be done as an option to the @unixtime@ variable, so that instead of just using @unixtime@ to get seconds since epoch, expand the variable to accept a date and optional time, such as @unixtime@[November 01, 2000 21:30 -0800], and then we could use @calc@ to calculate the years, months, etc.

This is to replace using a similar Moobot variable, that only provides weeks, days, hours, no matter how many years ago the given date and time are.
Chat Moderator for RandomRambo

eTheBlack

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: eTheBlack
Re: A Time-Since Variable
« Reply #1 on: September 17, 2017, 05:22:15 AM »
We need this, idk why it is not here yet

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: A Time-Since Variable
« Reply #2 on: September 17, 2017, 05:25:32 AM »
Already is: @unixtime@   Numeric time for use in if statements. (Number of seconds since January 1, 1970)
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport