2018-04-25 00:43:53 -07:00
|
|
|
import efl_types;
|
|
|
|
|
2019-02-14 08:37:02 -08:00
|
|
|
class @beta Efl.Datetime.Manager extends Efl.Object
|
2018-04-25 00:43:53 -07:00
|
|
|
{
|
|
|
|
[[Efl datetime manager class for Datepicker and Timepicker]]
|
|
|
|
methods {
|
|
|
|
@property value {
|
|
|
|
[[The value of a date, time for Datepicker or Timepicker.
|
2019-01-18 05:22:23 -08:00
|
|
|
|
2018-04-25 00:43:53 -07:00
|
|
|
The value for Datepicker contains year, month, and day. (tm_year, tm_mon, and tm_mday in Efl_Time)
|
|
|
|
The value for Timepicker contains hour, and min. (tm_hour, and tm_min in Efl_Time)
|
|
|
|
]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
newtime: Efl.Time; [[Time structure containing date or time value.]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property format {
|
|
|
|
[[The format of date or time.
|
2019-01-18 05:22:23 -08:00
|
|
|
|
2018-04-25 00:43:53 -07:00
|
|
|
Default format is taken as per the system locale settings.
|
|
|
|
]]
|
|
|
|
set {
|
|
|
|
}
|
|
|
|
get {
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
fmt: string; [[The format string]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@property string {
|
2019-09-13 03:25:49 -07:00
|
|
|
[[Get the string that matches with the format.]]
|
2018-04-25 00:43:53 -07:00
|
|
|
get {
|
|
|
|
}
|
|
|
|
keys {
|
|
|
|
fmt: string; [[The format string]]
|
|
|
|
}
|
|
|
|
values {
|
|
|
|
string: string; [[The string that matches with the format]]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
implements {
|
|
|
|
Efl.Object.constructor;
|
|
|
|
Efl.Object.destructor;
|
|
|
|
}
|
|
|
|
}
|