Import line: | Soup = imports.gi.Soup; |
GIR File: | Soup-2.4.gir |
C documentation: | SoupDate |
Struct : | Date |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
day : Number
|
Soup.Date | |
hour : Number
|
Soup.Date | |
minute : Number
|
Soup.Date | |
month : Number
|
Soup.Date | |
offset : Number
|
Soup.Date | |
second : Number
|
Soup.Date | |
utc : Boolean
|
Soup.Date | |
year : Number
|
Soup.Date |
Method / Constructor | Defined By | |
---|---|---|
new 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
()
:
Number
Gets date's day.
Gets date's day.
|
Soup.Date | |
get_hour
()
:
Number
Gets date's hour.
Gets date's hour.
|
Soup.Date | |
get_minute
()
:
Number
Gets date's minute.
Gets date's minute.
|
Soup.Date | |
get_month
()
:
Number
Gets date's month.
Gets date's month.
|
Soup.Date | |
get_offset
()
:
Number
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
()
:
Number
Gets date's second.
Gets date's second.
|
Soup.Date | |
get_utc
()
:
Number
Gets date's UTC flag
Gets date's UTC flag
|
Soup.Date | |
get_year
()
:
Number
Gets date's year.
Gets date's year.
|
Soup.Date | |
is_past
()
:
Boolean
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
()
:
Number
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 by cookie and should not be modified or freed.
|
Soup.Cookie
Method |
set_expires
(Date expires)
:
none
Sets cookie's expiration time to expires.
|