Gsf.Timestamp¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
date |
r/w |
|
|
seconds |
r/w |
|
|
time_zone |
r/w |
possibly blank |
|
timet |
r/w |
as from |
Methods¶
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Gsf.Timestamp¶
A point in time.
- classmethod new()¶
- Return type:
- as_string()¶
- Returns:
a string representation of self. When self is invalid, the representation is “<invalid>”.
- Return type:
Produce a string representation (ISO 8601 format) of self.
- copy()¶
- Returns:
a separate copy of self.
- Return type:
Copies a timestamp.
- equal(b)¶
- Parameters:
b (
Gsf.Timestamp
) – another timestamp- Returns:
true if self and b represent the same point in time; false otherwise.
- Return type:
Compare timestamps self and b.
- free()¶
Releases the memory in use for self (if any).
- load_from_string(spec)¶
-
Parser for time stamps. Requires a ISO 8601 formatted string.
New in version 1.14.24.
- to_value(value)¶
- Parameters:
value (
GObject.Value
) –GObject.Value
Calls g_value_set_box (value, stamp);
New in version 1.14.24.