Stellarium 0.14.3
List of all members | Public Member Functions
TimeZoneConfiguration Class Reference

Public Member Functions

virtual void init ()
 
virtual void deinit ()
 
virtual void update (double deltaTime)
 
virtual double getCallOrder (StelModuleActionName actionName) const
 
virtual bool configureGui (bool show)
 
void setTimeZone (QString timeZoneString)
 Sets the time zone field in Stellarium's configuration file. More...
 
QString readTimeZone ()
 Reads the time zone field in Stellarium's configuration file. More...
 
void saveDisplayFormats ()
 Saves the formats used to display date and time in the bottom bar. More...
 

Detailed Description

Definition at line 30 of file TimeZoneConfiguration.hpp.

Member Function Documentation

QString TimeZoneConfiguration::readTimeZone ( )

Reads the time zone field in Stellarium's configuration file.

Returns
the contents of the "localization/time_zone" field in Stellarium's configuration file.
void TimeZoneConfiguration::saveDisplayFormats ( )

Saves the formats used to display date and time in the bottom bar.

void TimeZoneConfiguration::setTimeZone ( QString  timeZoneString)

Sets the time zone field in Stellarium's configuration file.

To work, timeZoneString should be a valid value of the TZ environmental variable according to the POSIX format. (See http://www.gnu.org/s/libc/manual/html_node/TZ-Variable.html) Note that Microsoft Windows may use a truncated version of the TZ format. For now, Stellarium needs to be restarted for the new settings to take effect.


The documentation for this class was generated from the following file: