Wx::DateTime
From WxPerl wiki
Wx::DateTime is a date/time manipulation class for Wx. It is based on the wxDateTime class in WxWidgets. It does not provide as much functionality as Perl's DateTime class, but it is what Wx date and time controls expect.
The C++ documentation for this class can be found here. Note that the WxPerl interface is not complete. In particular, the various overloads of the new operator do not exist in WxPerl. The available constructors are:
Contents |
new
$dt = Wx::DateTime->new();
Creates a new Wx::DateTime object, initialized with the current system date and time.
newFromTimeT
$dt = Wx::DateTime->newFromTimeT($time);
Creates a new Wx::DateTime object, initialized from the specified time, which is in epoch seconds.
newFromDMY
$dt = Wx::DateTime->newFromDMY($day, $month, $year, $hour, $minute, $second, $millisecond);
Creates a new Wx::DateTime object, initialized from the specified date/time elements. Only $day is required; the others default to the current date and time.
Now
$dt = Wx::DateTime::Now();
Returns the current date and time. Milliseconds will be zero; see Unow, below.
Today
$dt = Wx::DateTime::Today();
Returns the current date; all time fields will be zero.
Now
$dt = Wx::DateTime::Now();
Returns the current date and time, with millisecond precision. May not be supported on all platforms (but is supported on Windows and most or all Unixes).
