class

UIng::DateTimePicker

Inherits UIng::Control < UIng::BlockConstructor < Reference < Object

A native picker for local calendar and clock fields.

Time values are treated as wall-clock values: the setter copies their displayed date and time fields without converting them to another time zone. Values returned by the getter and callbacks use Time::Location.local. The original instant, offset, and location therefore do not round-trip when they differ from the local time zone.

Constructors

new(*args, &)
Source
new(*args, **kwargs, &)
Source
new(type : Symbol)
Source

Instance methods

on_changed

Invokes the block with the displayed wall-clock value in Time::Location.local.

Source
time

Returns the displayed wall-clock value in Time::Location.local.

Source
time=(time : Time) : Nil

Sets the displayed wall-clock fields from time without time-zone conversion.

Source
to_unsafe
Source