This is not an April Fool’s joke! This TFM module is obsolete. Please consider using TFMv2 instead, which is much more powerful. Thank you!
If you want, you can also check out my tweet.
Happy April Fools! Today is the date of the fools, but also my first module. Have you ever had to turn a boring number of seconds to a readable and common time display format?
Well, my module does exactly this. It does all the work while you just have to write one line of code!
The timing of this release is perfect, isn’t it? You’d be a fool if you think otherwise!
BAM! Double joke!
Anyways, I plan to make a series of modules (similar to @Elttob), with the series being called “Crazy Cool Carbyne Collection” also known as “Quad-C”.
Currently, TFM has an extremely simple API primarily because it is very new and because it is my first module.
An integer representing the number of seconds you want to convert.
A string that controls how the given seconds will be formatted and displayed.
Currently, there are three forms:
Default (aka Colon):
- automatically set if the parameter is not given
- displays as 00:00:00
- max unit is hour (i.e. 24 hours is not the limit you can have something like 32:02:13)
- supports the AddZero parameter
- accepted strings: “default” and “colon” in any case (i.e. all or partial capitalization is accepeted)
- displays as 00 yr(s) 00 mon 00 d 00 hr(s) 00 min(s) 00 sec
- max unit is year (I originally wanted to extend to millennium, but that’s redundant!)
- adjusts to plural (yrs, hrs, mins ONLY)
- accepted strings: “short” in any case
- displays as 00 year(s) 00 month(s) 00 day(s) 00 hour(s) 00 minute(s) 00 second(s)
- max unit is year (will always be the same as the short form)
- adjusts to plural (all units)
- accepted strings: “full” in any case
A boolean value denoting whether or not you would like to toggle a zero in front of the current largest unit.
Setting this to true will display 3690 as 01:01:30. Setting this to false will result in 1:01:30. Note: only the zero in the biggest unit (in this case, hour) toggled, not the minute.
As I mentioned before, this is my first module, so there may be some bugs (even though I tested this a million times with loops). Also, you may find my coding style a little messy or you may have a suggestion on how to further optimize it. Or, you may even want to request a new feature or change an existing one.
In any of these instances, feel free to PM me via the DevForums only or reply to this topic. I am not the best scripter, so please be patient with me! However, I am always looking for ways to improve.
Of course, I cannot post anything without … polls!
How useful is this module to you?
- Very useful
- Not very useful
- Not useful whatsoever
Please only answer this after using the module: How is your overall experience with it? Rate from 1-10.
Thank you for your time and feedback,
and don’t get fooled today!