TickTime-rs
A basic utilities to convert tick number to a date time to use in game. It was first made to fulfill the need of city building games.
It is divided into three main calendar types, an Earthlike lunar calendar, Earthlike real calendar and Custom calendar where you decide the value of each units.
Examples
Earthlike lunar calendar
// Initialize a lunar ticktime where one tick is 3600 seconds
let mut ticktime = init.unwrap;
// Calling tick to simulate 40 days
for _ in 0..
println!; // Month 1, Day 10
Earthlike real calendar
// Initialize a real ticktime where one tick is 3600 seconds
let mut ticktime = init.unwrap;
// Calling tick to simulate 40 days
for _ in 0..
println!; // Month 1, Day 9
Custom calendar
// Initialize a custom ticktime where one tick is 3600 seconds
// where each day is 12 hours long
// and year are composed of 4 months with 1 day
let mut ticktime = init.unwrap;
// Calling tick to simulate 40 days
for _ in 0..
println!; // Year 20, Month 0, Day 0