is there a way to do bbcode for a dynamic timer?

#1
God
i'm thinking something that counts down from a specified time by referencing the post's timestamp.



would show something like 4 hours and 0 minutes if someone views it four hours after the user posted it. would be v useful for forum games because the more mathematically challenged amongst us wouldn't have to burn half of our brain cells trying to convert time zones. we could also have a [countu] for showing how much time has elapsed since a post was made.
"If Your Plate Doesn't Have Any Beef On It, Send It Back To The Hecking Cafeteria!!!" - OracularRELOADED
#2
Yrrzy
alternatively for pure timecode stuff let us do a bbcode that converts a time to the viewer's timezone on the site (with smth specifying the timezone ofc)
[Image: yrrzy.gif]
#3
Spritanium
I just spent a totally inefficient amount of time doing this, but here it is



Use this format:

Code:
[countd]10h30m[/countd]
[Image: supercorrect.png]
#4
T-man
#5
T-man
wow spitey i already broke it good job
#6
Spritanium
I guess it doesn't like 10 billion hours
#7
Spritanium
OK I think it just gets confused when you try to use a number that could be specified with a larger unit

For instance "24h" works, but "25h" forgets to add the "1 day" at the beginning

10 billion hours just broke it because that's literally 1141553 years
#8
Spritanium


OK that part should be fixed
[Image: supercorrect.png]
#9
God
THANK YOU SPRITEY
"If Your Plate Doesn't Have Any Beef On It, Send It Back To The Hecking Cafeteria!!!" - OracularRELOADED

Users browsing this thread:

Forum Jump:

";