value_new_date_time_from_timet


Description:


public Value? value_new_date_time_from_timet (long val)

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

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

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

<code> ts = gda_value_new_date_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