Difference between revisions of "Documentation/DevGuide/Basic/Time Field"
From Apache OpenOffice Wiki
< Documentation | DevGuide
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Basic and Dialogs) |
OOoWikiBot (Talk | contribs) m (Robot: Changing Category:Documentation/Developers Guide/Basic and Dialogs) |
||
Line 21: | Line 21: | ||
{{PDL1}} | {{PDL1}} | ||
− | [[Category:Documentation/ | + | [[Category:Documentation/Developer's Guide/Basic and Dialogs]] |
Revision as of 07:39, 5 June 2008
The time field control com.sun.star.awt.UnoControlDateField displays and enters time values. The time value are set and retrieved by the Time
property. The time value is of type Long
and is specified in the format HHMMSShh, where HH are hours, MM are minutes, SS are seconds and hh are hundredth seconds. For example, the time 15:18:23 is set by:
oTimeFieldModel = oDialog.Model.TimeField1 oTimeFieldModel.Time = 15182300
The minimum and maximum time value that can be entered is given by the TimeMin
and TimeMax
property. The format of the displayed time is specified by the TimeFormat
property.
The time value is checked during input by setting the StrictFormat
property to True
.
Short
time format is currently not working.
Content on this page is licensed under the Public Documentation License (PDL). |