Latest Posts

Topic: Widelands Main line 294

luitzen
Avatar
Topic Opener
Joined: 2017-11-10, 09:36
Posts: 7
Ranking
Pry about Widelands
Posted at: 2017-11-15, 14:20

It says %li seconds. My bet is that's not correct.


Top Quote
Venatrix
Avatar
Joined: 2010-10-05, 20:31
Posts: 449
Ranking
Tribe Member
Location: Germany
Posted at: 2017-11-15, 14:41

Opened as issue on Transifex. Best to ask there directly. face-smile.png


Two is the oddest prime.

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-11-16, 07:39

li means "long integer". Underlying type is time_t and our compilers have never complained, so it is correct.

time_t

Time type

Alias of a fundamental arithmetic type capable of representing times, as those returned by function time.

For historical reasons, it is generally implemented as an integral value representing the number of seconds elapsed since 00:00 hours, Jan 1, 1970 UTC (i.e., a unix timestamp). Although libraries may implement this type using alternative time representations.

http://www.cplusplus.com/reference/ctime/time_t/?kw=time_t


Busy indexing nil values

Top Quote