MythTV  master
Enumerations | Functions
MythDate Namespace Reference

Enumerations

enum  Format {
  ISODate = Qt::ISODate, kFilename = 0x000100, kDateFull = 0x000200, kDateShort = 0x000400,
  kDateEither = kDateFull | kDateShort, kTime = 0x000800, kDateTimeFull = kDateFull | kTime, kDateTimeShort = kDateShort | kTime,
  kAddYear = 0x001000, kSimplify = 0x002000, kDatabase = 0x004000, kAutoYear = 0x008000,
  kScreenShotFilename = 0x010000, kRFC822 = 0x020000, kOverrideUTC = 0x100000, kOverrideLocal = 0x200000
}
 

Functions

QDateTime current (bool stripped=false)
 Returns current Date and Time in UTC. More...
 
QString current_iso_string (bool stripped=false)
 Returns current Date and Time in UTC as a string. More...
 
QDateTime as_utc (const QDateTime &dt)
 Returns copy of QDateTime with TimeSpec set to UTC. More...
 
QDateTime fromString (const QString &)
 Converts kFilename && kISODate formats to QDateTime. More...
 
MBASE_PUBLIC QDateTime fromString (const QString &dt, const QString &format)
 Converts dy in format to QDateTime. More...
 
MBASE_PUBLIC QDateTime fromSecsSinceEpoch (uint seconds)
 This function takes the number of seconds since the start of the epoch and returns a QDateTime with the equivalent value. More...
 
QString toString (const QDateTime &datetime, uint format=MythDate::kDateTimeFull)
 Returns formatted string representing the time. More...
 
QString toString (const QDate &date, uint format)
 Returns a formatted QString based on the supplied QDate. More...
 
int toSeconds (const QTime &time)
 Returns the total number of seconds since midnight of the supplied QTime. More...
 

Enumeration Type Documentation

◆ Format

Enumerator
ISODate 

Default UTC.

kFilename 

Default UTC, "yyyyMMddhhmmss".

kDateFull 

Default local time.

kDateShort 

Default local time.

kDateEither 

Default local time.

kTime 

Default local time.

kDateTimeFull 

Default local time.

kDateTimeShort 

Default local time.

kAddYear 

Add year to string if not included.

kSimplify 

Do Today/Yesterday/Tomorrow transform.

kDatabase 

Default UTC, database format.

kAutoYear 

Add year only if different from current year.

kScreenShotFilename 

"yyyy-MM-ddThh-mm-ss.zzz"

kRFC822 

HTTP Date format.

kOverrideUTC 

Present date/time in UTC.

kOverrideLocal 

Present date/time in localtime.

Definition at line 12 of file mythdate.h.

Function Documentation

◆ current()

MBASE_PUBLIC QDateTime MythDate::current ( bool  stripped = false)

Returns current Date and Time in UTC.

Parameters
strippedif true milliseconds are stripped

Definition at line 10 of file mythdate.cpp.

Referenced by MythNVDECInterop::Acquire(), addButton(), EITHelper::AddEIT(), Scheduler::AddNotListed(), Video::AddVideo(), RecordingInfo::ApplyNeverRecord(), TV::AskAllowRecording(), Scheduler::AssignGroupInput(), AudioDeviceComboBox::AudioDeviceComboBox(), DBUtil::BackupDB(), DTVRecorder::BufferedWrite(), HTTPRequest::BuildResponseHeader(), MythUIHelper::CacheImage(), MythUIProgressBar::CalculatePosition(), Scheduler::ChangeRecordingEnd(), OSD::CheckExpiry(), HouseKeeperTask::CheckImmediate(), MythThemedMenu::checkPinCode(), HouseKeeperTask::CheckStartup(), ImageSearchResultsDialog::cleanCacheDir(), NetBase::CleanCacheDir(), MetadataResultsDialog::cleanCacheDir(), cleanThumbnailCacheDir(), CleanupTask::CleanupInUsePrograms(), JobQueue::CleanupOldJobsInQueue(), CleanupTask::CleanupOrphanedLiveTV(), ProgramInfo::clear(), PreviewGeneratorQueue::ClearPreviewGeneratorAttempts(), ProgramInfo::clone(), CommBreakMap::CommBreakMap(), comp_priority(), comp_retry(), connect_to_master(), ProgramRecPriority::countMatches(), DBUtil::CreateBackupFilename(), MythSessionManager::CreateUserSession(), current_iso_string(), ScheduleCommon::customEvent(), MythThemedMenu::customEvent(), NewsSite::customEvent(), MainServer::customEvent(), MainServer::deferredDeleteSlot(), MainServer::DeletePBS(), OSD::DialogShow(), HTTPRequest::DigestAuthentication(), ThreadedFileWriter::DiskLoop(), doBurnDVD(), ParentalLevelChangeCheckerPrivate::DoCheck(), TV::DoEditSchedule(), MythPlayer::DoFastForwardSecs(), StatusBox::doJobQueueStatus(), MythDVDPlayer::DoJumpChapter(), MythPlayer::DoJumpChapter(), StatusBox::doListingsStatus(), doNativeArchive(), MythPlayer::DoRewindSecs(), LogCleanerTask::DoRun(), CommBreakMap::DoSkipCommercials(), LCDProcClient::dostdclock(), MythDownloadManager::downloadFinished(), MythDownloadManager::downloadNow(), MythDownloadManager::downloadProgress(), MythDownloadManager::downloadQNetworkRequest(), OSD::Draw(), MusicMetadata::dumpToDatabase(), ScheduleCommon::EditRecording(), EITCache::EITCache(), EncoderLink::EncoderLink(), evaluateDateValue(), PreviewGeneratorQueue::event(), MythPlayer::FastForward(), ViewScheduleDiff::fillList(), GameUI::fillNode(), GuideUpdateProgramRow::fillProgramRowInfosWith(), Scheduler::FillRecordList(), VBoxDeviceIDList::fillSelections(), DVBCardNum::fillSelections(), ASIDevice::fillSelections(), HttpStatus::FillStatusXML(), PrePostRollFlagger::findBreakInrange(), TVRec::FinishedRecording(), EncoderLink::FinishRecording(), FlagCommercials(), PreviewGeneratorQueue::GeneratePreviewImage(), GuideGrid::gestureEvent(), Scheduler::GetAllScheduled(), DVBStreamData::GetCachedBAT(), DVBStreamData::GetCachedBATs(), ATSCStreamData::GetCachedCVCT(), ATSCStreamData::GetCachedCVCTs(), ATSCStreamData::GetCachedMGT(), DVBStreamData::GetCachedNIT(), DVBStreamData::GetCachedSDT(), DVBStreamData::GetCachedSDTs(), DVBStreamData::GetCachedSDTSections(), ATSCStreamData::GetCachedTVCT(), ATSCStreamData::GetCachedTVCTs(), Channel::GetChannelInfoList(), Dvr::GetConflictList(), UPnpCDSExtension::GetCurrentToken(), getDailyWakeupTime(), Dvr::GetExpiringList(), MPEG2fixup::GetFrame(), MythUIHelper::GetImageFromCache(), JobQueue::GetJobsInQueue(), MythDownloadManager::GetLastModified(), LiveTVChain::GetLengthAtPos(), MetaGrabberScript::GetList(), MythCommandLineParser::GetLogFilePath(), Scheduler::GetNextLiveTVDir(), TVBrowseHelper::GetNextProgramDB(), Dvr::GetOldRecordedList(), Guide::GetProgramGuide(), Guide::GetProgramList(), TVRec::GetProgramRingBufferForLiveTV(), Dvr::GetRecordedList(), EncoderLink::GetRecordingStatus(), Dvr::GetRecordScheduleList(), MythVAAPIInteropDRM::GetReferenceFrames(), MythVTBSurfaceInterop::GetReferenceFrames(), getStatus(), Image::GetSyncStatus(), Myth::GetTimeZone(), Music::GetTrackList(), MetaGrabberScript::GetType(), Dvr::GetUpcomingList(), Video::GetVideoList(), MythDisplayX11::GetVideoModes(), Channel::GetVideoMultiplexList(), Channel::GetVideoSourceList(), PrePostRollFlagger::go(), CommDetector2::go(), ClassicCommDetector::go(), EncoderLink::GoToSleep(), GuideGrid::GuideGrid(), Scheduler::HandleIdleShutdown(), TVRec::HandlePendingRecordings(), MainServer::HandleQueryRecordings(), Scheduler::HandleRecording(), Scheduler::HandleRunSchedulerStartup(), TVRec::HandleStateChange(), TV::HandleStateChange(), DTVRecorder::HandleTimestamps(), Scheduler::HandleWakeSlave(), DVBStreamData::HasCachedAllBAT(), DVBStreamData::HasCachedAllBATs(), ATSCStreamData::HasCachedAllCVCTs(), DVBStreamData::HasCachedAllNIT(), DVBStreamData::HasCachedAllSDT(), DVBStreamData::HasCachedAllSDTs(), ATSCStreamData::HasCachedAllTVCTs(), ATSCStreamData::HasCachedAllVCTs(), DVBStreamData::HasCachedAnyBAT(), ATSCStreamData::HasCachedAnyCVCTs(), DVBStreamData::HasCachedAnyNIT(), DVBStreamData::HasCachedAnySDT(), ATSCStreamData::HasCachedAnyTVCTs(), ATSCStreamData::HasCachedAnyVCTs(), ATSCStreamData::HasCachedCVCT(), ATSCStreamData::HasCachedMGT(), DVBStreamData::HasCachedSDT(), ATSCStreamData::HasCachedTVCT(), JobQueue::HasRunningOrPendingJobs(), AudioSetupWizard::Init(), ThemeChooser::Init(), LiveTVChain::InitializeNewChain(), JobQueue::InJobRunWindow(), DBUtil::IsBackupInProgress(), TVRec::IsBusy(), PreviewGeneratorQueue::IsGeneratingPreview(), MythUserSession::IsValid(), LiveTVChain::JumpToNext(), GuideGrid::keyPressEvent(), MythNotificationScreen::keyPressEvent(), MSqlDatabase::KickDatabase(), GameHandler::Launchgame(), NetworkControl::listSchedule(), MythUIHelper::LoadCacheImage(), LoadFromRecorded(), ViewScheduled::LoadList(), ProgramInfo::LoadProgramFromRecorded(), MythOpenGLVideo::LoadTextures(), ThemeChooser::LoadVersion(), PreviewGenerator::LocalPreviewRun(), lock_channel(), loggingGetTimeStamp(), Video::LookupVideo(), ManualSchedule::ManualSchedule(), ProgramInfo::MarkAsInUse(), markUpdated(), MythVDPAUHelper::MixerRender(), MPEG2fixup::MPEG2fixup(), MSqlDatabase::MSqlDatabase(), MythArchiveDateFormat(), MythCoreContextPrivate::MythCoreContextPrivate(), MythDateFormatCB(), MythShortDateFormat(), needsUpdate(), HardwareProfile::NeedsUpdate(), MythScreenType::NextPrevWidgetFocus(), FileRingBuffer::OpenFile(), LCDProcClient::outputRecStatus(), RSSEditPopup::ParseAndSave(), Parse::ParseItem(), HTTPRequest::ParseRequest(), HttpStatus::PrintEncoderStatus(), HttpStatus::PrintJobQueue(), Scheduler::PrintList(), HttpStatus::PrintScheduled(), HttpStatus::PrintStatus(), MythOpenGLVideo::ProcessFrame(), TV::ProcessNetworkControlCommand(), DeleteThread::ProcessNew(), DeleteThread::ProcessOld(), JobQueue::ProcessQueue(), MythRAOPConnection::ProcessRequest(), MythRAOPConnection::ProcessSync(), ProgramInfo::ProgramInfo(), MythUIHelper::PruneCacheDir(), MythUIClock::Pulse(), MDBManager::PurgeIdleConnections(), MDBManager::pushConnection(), Scheduler::PutInactiveSlavesToSleep(), ProgramInfo::QueryInUseMap(), ProgramInfo::QueryIsInUse(), HouseKeeperTask::QueryLast(), JobQueue::QueueJob(), JobQueue::QueueJobs(), RecordingRule::RecordingRule(), TVRec::RecordPending(), JobQueue::RecoverQueue(), MythPowerOSX::Refresh(), RemoteGetRecordingStatus(), NCPrivate::RemoveFirst(), ThemeChooser::removeTheme(), ScreenSaverX11Private::ResetScreenSaver(), MythPlayer::Rewind(), MpegRecorder::run(), V4L2encStreamHandler::run(), EITScanner::run(), GrabberScript::run(), FillData::Run(), TVBrowseHelper::run(), Scheduler::run(), AudioTestThread::run(), HouseKeeper::Run(), TVRec::run(), RunCCExtract(), AutoExpire::RunExpirer(), MythUserSession::Save(), ThemeChooser::saveAndReload(), SaveScan(), MythMainWindow::SaveScreenShot(), Scheduler::SchedLiveTV(), Scheduler::SchedNewRecords(), MusicFileScanner::SearchDirs(), ProgFinder::selectShowData(), Streamer::SendBytes(), UPnpSearchTask::SendMsg(), MythAirplayServer::SendResponse(), OSD::SetExpiryPriv(), MythScreenType::SetFocusWidget(), PlayerContext::SetInitialTVState(), MythUIButtonList::SetItemCurrent(), MusicMetadata::setLastPlay(), HouseKeeperTask::SetLastRun(), VideoVisual::SetLastUpdate(), RecorderBase::SetRecording(), MythNotificationScreen::SetSingleShotTimer(), EncoderLink::SetSleepStatus(), MythUIClock::SetText(), OSD::SetText(), VideoFilterSettings::setTextFilter(), AvFormatDecoder::SetupAudioStreamSubIndexes(), MenuBase::Show(), MythContextPrivate::ShowConnectionFailurePopup(), TV::ShowOSDAskAllow(), VideoOutputD3D::ShowPIP(), ThemeChooser::showPopupMenu(), shutdown(), WelcomeDialog::shutdownNow(), Scheduler::ShutdownServer(), AutoExpire::Sleep(), RSSEditPopup::SlotSave(), V4L2encSignalMonitor::StableResolution(), EITScanner::StartActiveScan(), EncoderLink::StartRecording(), startup(), EncoderLink::StopRecording(), TVRec::StopRecording(), sub_read_line_aqt(), sub_read_line_jacobsub(), sub_read_line_microdvd(), sub_read_line_mpl2(), sub_read_line_mpsub(), sub_read_line_pjs(), sub_read_line_rt(), sub_read_line_sami(), sub_read_line_ssa(), sub_read_line_subrip(), sub_read_line_subrip09(), sub_read_line_subviewer(), sub_read_line_subviewer2(), sub_read_line_vplayer(), HardwareProfile::SubmitProfile(), MThread::ThreadSetup(), RSSSite::timeSinceLastUpdate(), NewsSite::timeSinceLastUpdate(), RecStatus::toDescription(), RecordingRule::ToMap(), ProgramInfo::ToMap(), toString(), Transcode::TranscodeFile(), ThreadedFileWriter::TrimEmptyBuffers(), HDHRStreamHandler::TuneChannel(), HDHRStreamHandler::TuneVChannel(), TVRec::TuningFrequency(), TVRec::TuningShutdowns(), TVRec::TuningSignalCheck(), unlock_channel(), MythUserSession::Update(), VideoScannerThread::updateDB(), AutoExpire::UpdateDontExpireSet(), ProgramInfo::UpdateInUseMark(), ProgramInfo::UpdateLastDelete(), HouseKeeperTask::UpdateLastRun(), updateLastRunEnd(), MusicFileScanner::updateLastRunEnd(), updateLastRunStart(), MusicFileScanner::updateLastRunStart(), Scheduler::UpdateManuals(), Scheduler::UpdateMatches(), updateNextScheduledRun(), TV::UpdateOSDSignal(), GalleryThumbView::UpdateScanProgress(), WelcomeDialog::updateStatusMessage(), MainServer::UpdateSystemdStatus(), ZMConsole::updateTime(), PlaybackBox::UpdateUILists(), VideoVisual::VideoVisual(), Scheduler::WakeUpSlave(), WasAutomaticStart(), Scheduler::WasStartedAutomatically(), ProgFinder::whereClauseGetSearchData(), JaProgFinder::whereClauseGetSearchData(), HeProgFinder::whereClauseGetSearchData(), RuProgFinder::whereClauseGetSearchData(), ThreadedFileWriter::Write(), XMLTVParser::XMLTVParser(), and ZMDateFormat().

◆ current_iso_string()

MBASE_PUBLIC QString MythDate::current_iso_string ( bool  stripped = false)

Returns current Date and Time in UTC as a string.

Parameters
strippedif true milliseconds are stripped

Definition at line 18 of file mythdate.cpp.

Referenced by MythCDROMLinux::checkMedia(), HTTPRequest::GetAuthenticationHeader(), BaseRequestHandler::HandleQueryTimeZone(), MainServer::HandleQueryTimeZone(), ParentalLevelChangeCheckerPrivate::OnPasswordEntered(), and NetworkControl::processQuery().

◆ as_utc()

MBASE_PUBLIC QDateTime MythDate::as_utc ( const QDateTime &  old_dt)

◆ fromString() [1/2]

MBASE_PUBLIC QDateTime MythDate::fromString ( const QString &  dtstr)

Converts kFilename && kISODate formats to QDateTime.

Definition at line 30 of file mythdate.cpp.

Referenced by Scheduler::AddNewRecords(), Video::AddVideo(), MythThemedMenu::checkPinCode(), connect_to_master(), Service::ConvertToParameterPtr(), MainServer::customEvent(), JobQueue::customEvent(), HouseKeeper::customEvent(), GallerySettings::DateFormat(), HTTPRequest::DigestAuthentication(), ParentalLevelChangeCheckerPrivate::DoCheck(), MythFillDatabaseTask::DoCheckRun(), StatusBox::doListingsStatus(), MythDownloadManager::downloadQNetworkRequest(), LiveTVChain::entriesFromStringList(), PreviewGenerator::event(), ProgramInfo::ExtractKey(), ProgramInfo::ExtractKeyFromPathname(), HttpStatus::FillStatusXML(), HTTPRequest::FormatFileResponse(), Parse::FromRFC3339(), fromXMLTVDate(), getDailyWakeupTime(), ZMEvents::getDateList(), ZMClient::getEventList(), MainServer::getGuideDataThrough(), MythDownloadManager::GetLastModified(), NAMThread::GetLastModified(), TVBrowseHelper::GetNextProgram(), TVBrowseHelper::GetNextProgramDB(), PictureMetaData::GetOriginalDateTime(), VideoMetaData::GetOriginalDateTime(), getProgramInfoForFile(), MainServer::HandleDeleteRecording(), Scheduler::HandleIdleShutdown(), MainServer::HandleQueryRecording(), Scheduler::HandleReschedule(), MainServer::HandleUndeleteRecording(), MusicFileScanner::HasFileChanged(), JobQueue::InJobRunWindow(), DBUtil::IsBackupInProgress(), MythContextPrivate::LoadDatabaseSettings(), loadDetailsFromXML(), main(), Myth::ParseISODateString(), Parse::ParseItem(), ParseMetadataItem(), ParseMetadataMovieNFO(), HttpStatus::PrintEncoderStatus(), HttpStatus::PrintJobQueue(), HttpStatus::PrintMachineInfo(), HttpStatus::PrintScheduled(), PlaybackBox::processNetworkControlCommand(), TV::QuickRecord(), MetaIOID3::read(), FillData::Run(), TVBrowseHelper::run(), VideoMetadataImp::saveToDatabase(), MusicFileScanner::SearchDirs(), CommandLineArg::Set(), setting_to_localtime(), shutdown(), Scheduler::ShutdownServer(), startup(), MythSystemEventHandler::SubstituteMatches(), VideoScannerThread::updateDB(), MusicMetadata::updateStreamList(), SmartPLDateDialog::valueChanged(), WasAutomaticStart(), and Scheduler::WasStartedAutomatically().

◆ fromString() [2/2]

MBASE_PUBLIC QDateTime MythDate::fromString ( const QString &  str,
const QString &  format 
)

Converts dy in format to QDateTime.

Definition at line 49 of file mythdate.cpp.

Referenced by fromString().

◆ fromSecsSinceEpoch()

MBASE_PUBLIC QDateTime MythDate::fromSecsSinceEpoch ( uint  seconds)

This function takes the number of seconds since the start of the epoch and returns a QDateTime with the equivalent value.

Note: This function returns a QDateTime set to UTC, whereas the QDateTime::fromSecsSinceEpoch function returns a value set to localtime.

Parameters
secondsThe number of seconds since the start of the epoch at Jan 1 1970 at 00:00:00.
Returns
A QDateTime.

Definition at line 88 of file mythdate.cpp.

Referenced by FlatView::CalculateSeasonalWeights(), EITHelper::CompleteEvent(), InfoList::Display(), dvbdate2qt(), MainServer::HandleBookmarkQuery(), MainServer::HandleCutMapQuery(), MainServer::HandlePixmapGetIfModified(), MainServer::HandleSetBookmark(), RemoteFile::LastModified(), MythNews::loadSites(), ImageManagerFe::LongDateOf(), PlaybackSock::PixmapLastModified(), EITCache::PruneOldEntries(), HouseKeeperTask::QueryLast(), RemoteGetPreviewIfModified(), RemoteGetPreviewLastModified(), ImageManagerFe::ShortDateOf(), PlaybackSock::StartRecording(), EventInformationTable::StartTimeGPS(), PremiereContentTransmissionDescriptor::StartTimeUTC(), SystemTimeTable::SystemTimeGPS(), and HouseKeeperTask::UpdateLastRun().

◆ toString() [1/2]

MBASE_PUBLIC QString MythDate::toString ( const QDateTime &  raw_dt,
uint  format 
)

Returns formatted string representing the time.

Returns a formatted QString based on the supplied QDateTime.

Parameters
raw_dtThe QDateTime object to use
formatThe format of the string to return

Definition at line 101 of file mythdate.cpp.

Referenced by LiveTVChain::AppendNewProgram(), DBUtil::BackupDB(), VideoListImp::buildGroupList(), HTTPRequest::BuildResponseHeader(), MythThemedMenu::checkPinCode(), ClearSkipList(), CopySkipListToCutList(), ManualSchedule::Create(), MythTimeInputDialog::Create(), DBUtil::CreateBackupFilename(), CreateProgramInfoString(), PlaybackBox::CreateProgramInfoString(), ProgramInfo::CreateRecordBasename(), MythThemedMenu::customEvent(), InfoList::Display(), StatusBox::doAutoExpireList(), doBurnDVD(), StatusBox::doJobQueueStatus(), StatusBox::doListingsStatus(), StatusBox::doLogEntries(), doNativeArchive(), ViewScheduled::FillList(), HttpStatus::FillStatusXML(), GuideGrid::fillTimeInfos(), ProgLister::FillViewList(), FlagCommercials(), HTTPRequest::FormatFileResponse(), fromXMLTVDate(), ZMPlayer::getEventInfo(), Myth::GetFormatDate(), Myth::GetFormatDateTime(), Myth::GetFormatTime(), JobQueue::GetJobInfoFromID(), JobQueue::GetJobsInQueue(), ProgramInfo::GetLastModifiedTime(), MythCommandLineParser::GetLogFilePath(), GetMarkupList(), TVBrowseHelper::GetNextProgram(), ProgramInfo::GetRecordingEndTime(), ProgramInfo::GetRecordingStartTime(), ProgramInfo::GetScheduledEndTime(), ProgramInfo::GetScheduledStartTime(), PaneExistingScanImport::Load(), UPnpCDSTv::LoadDates(), ViewScheduled::LoadList(), ProgDetails::loadPage(), ImageManagerFe::LongDateOf(), HttpStatus::PrintEncoderStatus(), HttpStatus::PrintJobQueue(), HttpStatus::PrintMachineInfo(), HttpStatus::PrintScheduled(), HttpStatus::PrintStatus(), ProgramInfo::ProgramInfo(), QueueCommFlagJob(), RecordingQuality::RecordingQuality(), JSONSerializer::RenderValue(), XmlSerializer::RenderValue(), TVRec::run(), MythMainWindow::SaveScreenShot(), HTTPRequest::SetCookie(), SetCutList(), setting_to_localtime(), ProgLister::SetViewFromTime(), setWakeupTime(), shutdown(), Scheduler::ShutdownServer(), MythSystemEventHandler::SubstituteMatches(), LiveTVChain::SwitchTo(), ProgLister::SwitchToNextView(), ProgLister::SwitchToPreviousView(), RecordingRule::ToMap(), VideoMetadata::toMap(), ResultItem::toMap(), MetadataLookup::toMap(), MusicMetadata::toMap(), ProgramInfo::ToMap(), GuideGrid::updateDateText(), ProgramRecPriority::updateInfo(), MythNews::updateInfoView(), HouseKeeperTask::UpdateLastRun(), ProgramRecPriority::UpdateList(), RecordingSelector::updateRecordingList(), WelcomeDialog::updateScreen(), ProgFinder::updateTimesList(), ZMEvents::updateUIList(), and PlaybackBox::UpdateUILists().

◆ toString() [2/2]

MBASE_PUBLIC QString MythDate::toString ( const QDate &  date,
uint  format 
)

Returns a formatted QString based on the supplied QDate.

Warning: this function can not convert to and from UTC.

Parameters
dateThe QDate object to use
formatThe format of the string to return

Definition at line 153 of file mythdate.cpp.

◆ toSeconds()

MBASE_PUBLIC int MythDate::toSeconds ( const QTime &  time)

Returns the total number of seconds since midnight of the supplied QTime.

Parameters
timeThe QTime object to use

Definition at line 203 of file mythdate.cpp.