time_add_day


Description:

[ CCode ( cname = "time_add_day" ) ]
public long time_add_day (long time, int days)

Adds a day onto the time, using local time.

Note that if clocks go forward due to daylight savings time, there are some non-existent local times, so the hour may be changed to make it a valid time. This also means that it may not be wise to keep calling time_add_day to step through a certain period - if the hour gets changed to make it valid time, any further calls to time_add_day will also return this hour, which may not be what you want.

Parameters:

time

A time_t value.

days

Number of days to add.

Returns:

a time_t value containing time plus the days added.


Namespace: ECal
Package: libecal-2.0



2022 vala-language.org