Gda.Timestamp¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
day |
r/w |
day representation of the time stamp, as a number between 1 and 31 |
|
fraction |
r/w |
fractionnal part of the seconds, in millionth’ of second |
|
hour |
r/w |
hour representation of the time stamp, as a number between 0 and 23 |
|
minute |
r/w |
minute representation of the time stamp, as a number between 0 and 59 |
|
month |
r/w |
month representation of the time stamp, as a number between 1 and 12 |
|
second |
r/w |
second representation of the time stamp, as a number between 0 and 59 |
|
timezone |
r/w |
number of seconds added to the GMT timezone |
|
year |
r/w |
year representation of the time stamp |
Methods¶
class |
|
class |
|
|
|
|
Details¶
- class Gda.Timestamp¶
Represents an instant (a time stamp)
- 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
ifGda.Timestamp
is valid;False
otherwise.- Return type:
New in version 4.2.