|
cut 3.3.0
|
Class that displays current time in one of 3 reference frames, formatted according to 4 different formats. More...
Public Member Functions | |
| 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.
"ErfaWarning: ERFA function "utcut1" yielded 'dubious year (Note 3)'"
| qeclock.QeClock.get_reference_frame | ( | self | ) |
Returns current time format.
Used mostly for testing purposes
| qeclock.QeClock.get_time_format | ( | self | ) |
Returns current time format.
Used mostly for testing purposes
| qeclock.QeClock.getQtDesignerPluginInfo | ( | cls | ) |
Provides Qt Designer with widget information.
Return: dict Dictionary with values for keys: icon, module, container, tool_tip and xml.
| qeclock.QeClock.set_longitude | ( | self, | |
| float | new_value ) |
Sets longitude that's necessary to calculate LST.
By default, the longitude is set to Garching (11.650 deg)
| new_value | longitude to be set |
| qeclock.QeClock.set_reference_frame | ( | self, | |
| ReferenceFrame | reference_frame ) |
Sets time reference frames.
| reference_frame | Time reference frame to be set (LOCAL, UTC or LST) |
| qeclock.QeClock.set_time | ( | self, | |
| int | timestamp ) |
Sets current time to be displayed in the widget.
| timestamp | number of ns since epoch |
| qeclock.QeClock.set_time_format | ( | self, | |
| TimeFormat | time_format ) |
Sets format in which time should be displayed.
| time_format | Time format to be set (HHMMSS, HHMMSSc, YMDHMS or ASTRONOMICAL) |
| qeclock.QeClock.setText | ( | self, | |
| text ) |
Overwritten base class method to make sure only numerical values are set to the widget.
| text | Text to be set (automatically converted to int) |
| ValueError | is thrown when text conversion to int fails |