Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupDate |
Struct : | Date |
Properties | Defined By | |
---|---|---|
day : gint32
|
Soup.Date | |
hour : gint32
|
Soup.Date | |
minute : gint32
|
Soup.Date | |
month : gint32
|
Soup.Date | |
offset : gint32
|
Soup.Date | |
second : gint32
|
Soup.Date | |
utc : gboolean
|
Soup.Date | |
year : gint32
|
Soup.Date |
Method / Constructor | Defined By | |
---|---|---|
new Soup.Date
()
Create a new Soup.Date
Create a new Soup.Date
|
||
new Soup.Date.c_new
(gint32 year, gint32 month, gint32 day, gint32 hour, gint32 minute, gint32 second)
:
Soup.Date
Create a new Soup.Date
Create a new Soup.Date
|
||
copy
()
:
Soup.Date
Copies date.
Copies date.
|
Soup.Date | |
free
()
:
none
Frees date.
Frees date.
|
Soup.Date | |
get_day
()
:
gint32
Gets date's day.
Gets date's day.
|
Soup.Date | |
get_hour
()
:
gint32
Gets date's hour.
Gets date's hour.
|
Soup.Date | |
get_minute
()
:
gint32
Gets date's minute.
Gets date's minute.
|
Soup.Date | |
get_month
()
:
gint32
Gets date's month.
Gets date's month.
|
Soup.Date | |
get_offset
()
:
gint32
Gets date's offset from UTC.
Gets date's offset from UTC.
returns FALSE but soup_date_get_offset() returns 0, that means the date is a "floating" time with no associated offset information.
|
Soup.Date | |
get_second
()
:
gint32
Gets date's second.
Gets date's second.
|
Soup.Date | |
get_utc
()
:
gint32
Gets date's UTC flag
Gets date's UTC flag
|
Soup.Date | |
get_year
()
:
gint32
Gets date's year.
Gets date's year.
|
Soup.Date | |
is_past
()
:
gboolean
Determines if date is in the past.
Determines if date is in the past.
|
Soup.Date | |
to_string
(DateFormat format)
:
String
Converts date to a string in the format described by format.
Converts date to a string in the format described by format.
|
Soup.Date | |
to_time_t
()
:
gint32
Converts date to a time_t.
Converts date to a time_t.
If date is not representable as a time_t, it will be clamped into range. (In particular, some HTTP cookies have expiration dates after "Y2.038k" (2038-01-19T03:14:07Z).)
|
Soup.Date | |
to_timeval
()
:
GLib.TimeVal
Converts date to a GTimeVal.
Converts date to a GTimeVal.
|
Soup.Date |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Soup.Cookie
Method |
get_expires
()
:
Soup.Date
Gets cookie's expiration time
owned by cookie and should not be modified or freed. |
Soup.Cookie
Method |
set_expires
(Date expires)
:
none
Sets cookie's expiration time to expires.
|