MythTV  master
Functions
MythTZ Namespace Reference

Functions

int calc_utc_offset (void)
 
static bool compare_zone_files (QFileInfo first_file_info, QFileInfo second_file_info)
 
static bool parse_zone_id_config_string (QString &zone_id)
 
static bool read_time_zone_id (QString filename, QString &zone_id)
 
static QString getSystemTimeZoneID (void)
 
QString getTimeZoneID (void)
 Returns the zoneinfo time zone ID or as much time zone information as possible. More...
 
bool checkTimeZone (void)
 Verifies the time zone settings on this system agree with those on the master backend. More...
 
bool checkTimeZone (const QStringList &)
 This overloaded version allows for the use of an existing (not managed by MythContext) connection to the backend. More...
 

Function Documentation

◆ calc_utc_offset()

MBASE_PUBLIC int MythTZ::calc_utc_offset ( void  )

◆ compare_zone_files()

static bool MythTZ::compare_zone_files ( QFileInfo  first_file_info,
QFileInfo  second_file_info 
)
static

Definition at line 27 of file mythtimezone.cpp.

◆ parse_zone_id_config_string()

static bool MythTZ::parse_zone_id_config_string ( QString &  zone_id)
static

Definition at line 121 of file mythtimezone.cpp.

Referenced by read_time_zone_id().

◆ read_time_zone_id()

static bool MythTZ::read_time_zone_id ( QString  filename,
QString &  zone_id 
)
static

Definition at line 149 of file mythtimezone.cpp.

Referenced by getSystemTimeZoneID().

◆ getSystemTimeZoneID()

static QString MythTZ::getSystemTimeZoneID ( void  )
static

Definition at line 183 of file mythtimezone.cpp.

Referenced by getTimeZoneID().

◆ getTimeZoneID()

MBASE_PUBLIC QString MythTZ::getTimeZoneID ( void  )

Returns the zoneinfo time zone ID or as much time zone information as possible.

Definition at line 273 of file mythtimezone.cpp.

Referenced by Myth::GetTimeZone(), BaseRequestHandler::HandleQueryTimeZone(), and MainServer::HandleQueryTimeZone().

◆ checkTimeZone() [1/2]

MBASE_PUBLIC bool MythTZ::checkTimeZone ( void  )

Verifies the time zone settings on this system agree with those on the master backend.

Definition at line 309 of file mythtimezone.cpp.

◆ checkTimeZone() [2/2]

MBASE_PUBLIC bool MythTZ::checkTimeZone ( const QStringList &  )

This overloaded version allows for the use of an existing (not managed by MythContext) connection to the backend.

Definition at line 316 of file mythtimezone.cpp.