News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

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.

hreintke

LS,

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,

Herman


Dwachs

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

Ters

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.