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.
Examples
Eartlike 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
Eartlike 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