Date.from_now


Description:

[ CCode ( has_construct_function = false ) ]
public Date.from_now (int offset_seconds)

Creates a Date representing a time offset_seconds after the current time (or before it, if offset_seconds is negative).

If offset_seconds is 0, returns the current time.

If offset_seconds would indicate a time not expressible as a time_t, the return value will be clamped into range.

Parameters:

offset_seconds

offset from current time

Returns:

a new Date




2022 vala-language.org