value_new_time_from_timet


Description:


[ Version ( since = "6.0" ) ]
public Value? value_new_time_from_timet (long val)

Makes a new Value of type GDA_TYPE_TIME with value val (of type time_t).

The returned times's value is relative to the current timezone (i.e. is localtime).

For example, to get a time representing the current time, use:

<code> ts = gda_value_new_time_from_timet (time (NULL)); </code>

Parameters:

val

value to set for the new Value.

Returns:

the newly created Value, or null in case of error

Free-function: gda_value_free


Namespace: Gda
Package: libgda-6.0