Gda.Timestamp

Fields

Name

Type

Access

Description

day

int

r/w

day representation of the time stamp, as a number between 1 and 31

fraction

int

r/w

fractionnal part of the seconds, in millionth’ of second

hour

int

r/w

hour representation of the time stamp, as a number between 0 and 23

minute

int

r/w

minute representation of the time stamp, as a number between 0 and 59

month

int

r/w

month representation of the time stamp, as a number between 1 and 12

second

int

r/w

second representation of the time stamp, as a number between 0 and 59

timezone

int

r/w

number of seconds added to the GMT timezone

year

int

r/w

year representation of the time stamp

Methods

class

copy (boxed)

class

free (boxed)

change_timezone (ntz)

valid ()

Details

class Gda.Timestamp

Represents an instant (a time stamp)

classmethod copy(boxed)
Parameters:

boxed (object or None) –

Return type:

object or None

classmethod free(boxed)
Parameters:

boxed (object or None) –

change_timezone(ntz)
Parameters:

ntz (int) – a new timezone to use, in seconds added to GMT

This function is similar to Gda.Time.change_timezone() but operates on time stamps.

Note: the resulting will always be a valid time.

New in version 5.2.

valid()
Returns:

True if Gda.Timestamp is valid; False otherwise.

Return type:

bool

New in version 4.2.