public class TimeSettings
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
TimeSettings.CalendarView
Display setting for calendars.
|
static class |
TimeSettings.FirstWeekOfYear
Display setting for the first week of the year.
|
static class |
TimeSettings.TimeFormat
Display format of times.
|
Modifier and Type | Method and Description |
---|---|
TimeSettings.CalendarView |
getCalendarView()
Returns the calendar view.
|
TimeSettings.FirstWeekOfYear |
getFirstWeekOfYear()
Returns the display settings for the first week.
|
TimeSettings.TimeFormat |
getFormat()
Returns the display time format.
|
UC4TimezoneName |
getTimezone()
The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).
|
boolean |
isShowSeconds()
Method to know whether to show seconds or not.
|
void |
setCalendarView(TimeSettings.CalendarView calendarView)
Sets the calendar view.
|
void |
setFirstWeekOfYear(TimeSettings.FirstWeekOfYear firstWeekOfYear)
The definition made here is displayed in Calendar objects but does not influence processing (for example, WEEK_NR).
|
void |
setFormat(TimeSettings.TimeFormat format)
Sets the display time format.
|
void |
setShowSeconds(boolean showSeconds)
Method to show seconds at places if set to true.
|
void |
setTimezone(UC4TimezoneName timezone)
The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).
|
public UC4TimezoneName getTimezone()
public void setTimezone(UC4TimezoneName timezone)
timezone
- Name of the timezone objectpublic TimeSettings.TimeFormat getFormat()
public void setFormat(TimeSettings.TimeFormat format)
TimeFormat.FORMAT_DEFAULT
in the section Time format, UC4 uses the computer's time format.format
- Display time formatpublic TimeSettings.CalendarView getCalendarView()
public void setCalendarView(TimeSettings.CalendarView calendarView)
calendarView
- Calendar Viewpublic TimeSettings.FirstWeekOfYear getFirstWeekOfYear()
public void setFirstWeekOfYear(TimeSettings.FirstWeekOfYear firstWeekOfYear)
firstWeekOfYear
- Display setting for First Week of Yearpublic boolean isShowSeconds()
public void setShowSeconds(boolean showSeconds)
showSeconds
- if true then show seconds else don't.