Beta test the new forum at
Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Date and Time

Started by hreintke, August 05, 2012, 03:26:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.



I am looking for a way to get the date and time of the simulation.
I already have month and year (welt->get_current_month() % 12 + 1, welt->get_current_month() / 12)

But how to get to days, hours, minutes and seconds ? Expect something with ticks ?

Kind regards,



Simutrans does not know other time units than years, months, and ticks. One month = ticks_per_world_month ticks.
Parsley, sage, rosemary, and maggikraut.


Actually, Simutrans does know something about days, hours and minutes. It is displayed in the lower left corner depending on the show_month setting. I think it's just a visual thing, and whether a month has days or hours at all depends on the setting.