Class that displays current time in one of 3 reference frames, formatted according to 4 different formats.
More...
|
| | set_time_format (self, TimeFormat time_format) |
| | Sets format in which time should be displayed.
|
| |
| | get_time_format (self) |
| | Returns current time format.
|
| |
| | set_reference_frame (self, ReferenceFrame reference_frame) |
| | Sets time reference frames.
|
| |
| | get_reference_frame (self) |
| | Returns current time format.
|
| |
| | set_time (self, int timestamp) |
| | Sets current time to be displayed in the widget.
|
| |
|
| get_time_ns (self) |
| | Returns current time in ns.
|
| |
| | setText (self, text) |
| | Overwritten base class method to make sure only numerical values are set to the widget.
|
| |
| | set_longitude (self, float new_value) |
| | Sets longitude that's necessary to calculate LST.
|
| |
|
| convert_time (self) |
| | Converts time value stored in self._current_ns according to selected time reference.
|
| |
| | getQtDesignerPluginInfo (cls) |
| | Provides Qt Designer with widget information.
|
| |
Class that displays current time in one of 3 reference frames, formatted according to 4 different formats.
By default UTC time is displayed with HHMMSS formatting. For demo purpose and to avoid warning about invalid IERS data, present-day (current for development of the widget) is set.
- Attention
- Important: Local time display is based on OS time so if the OS time is set as UTC (not local), LOCAL and UTC will display the same. For proper display of LST time it's important to set longitude for which the calculations are to be made. By default Garching longitude is set (11.650 deg).
-
When passing time (in ns) that's considered outside the range where leap-second and Earth-orientation data are reliable (~2500 year), following warning may appear:
"ErfaWarning: ERFA function "utcut1" yielded
'dubious year (Note 3)'"
-
When passing timestamp which date lies outside the validity range of the loaded IERS table, following warning may occur:
"Tried to get polar motions for times before IERS data is valid."