Difference between revisions of "Documentation/DevGuide/Basic/Time Field"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (Robot: Changing Category:Documentation/Developers Guide/Basic and Dialogs)
m (FINAL VERSION FOR L10N)
Line 6: Line 6:
 
|NextPage=Documentation/DevGuide/Basic/Numeric Field
 
|NextPage=Documentation/DevGuide/Basic/Numeric Field
 
}}
 
}}
{{DISPLAYTITLE:Time Field}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Basic/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Time Field}}
 
The time field control <idl>com.sun.star.awt.UnoControlDateField</idl> displays and enters time values. The time value are set and retrieved by the <code>Time</code> property. The time value is of type <code>Long</code> 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:
 
The time field control <idl>com.sun.star.awt.UnoControlDateField</idl> displays and enters time values. The time value are set and retrieved by the <code>Time</code> property. The time value is of type <code>Long</code> 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:
  

Revision as of 12:38, 15 May 2009



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).
Personal tools
In other languages