Home›Java›Mods›TimeFormat API
TimeFormat API
ModsJava

TimeFormat API

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
The downloadable zip file for this resource contains both a compiled version, in the form of a plugin, which can be run on servers, and whatever plugins you make can hook into it by adding it to your build path.
Alternatively, there is also a .java file containing the API.
I made sure to make this as easy as possible to use, so it's all in one class. Simply add the code contents to your project.

To use the API, all you have to do is:
Code (Java):
TimeUnit. toString ( 69696969 ) ;
This will output:
Code (Text):
115 weeks 1 day 16 hours 16 minutes 9 seconds
It's really that simple.

With this API you can...
You're not limited by time either.
Feel free to use this resource to convert/distribute anything.
Weight, size, length, money, etc.
Simply change the enumeration string values around you're good to go!

If that's too much work for you, that's fine too.
This API is still perfect for cooldowns, ban times, or simple off the fly conversions.

The plugin version of this resource contains the commands:
/timeformat
/timeformat <seconds>
Run from the TimeUnit class, demonstrating how it works.

This API is free for use, and I intend to keep it updated constantly.
Though, donations are always welcome. I don't make much.
http://paypal.me/justisr

All suggestions/feedback appreciated.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

TimeFormat API is a free Minecraft Java mod. Downloaded 262 times (via Spigot). Download it and open it directly in the game.

Explore more