本文整理汇总了C++中CDateTime::SetFromUTCDateTime方法的典型用法代码示例。如果您正苦于以下问题:C++ CDateTime::SetFromUTCDateTime方法的具体用法?C++ CDateTime::SetFromUTCDateTime怎么用?C++ CDateTime::SetFromUTCDateTime使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CDateTime
的用法示例。
在下文中一共展示了CDateTime::SetFromUTCDateTime方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateTimeshift
void CPVRGUIInfo::UpdateTimeshift(void)
{
bool bStarted = g_PVRManager.IsStarted();
bool bIsTimeshifting = bStarted && g_PVRClients->IsTimeshifting();
CDateTime tmp;
time_t iTimeshiftStartTime = g_PVRClients->GetBufferTimeStart();
tmp.SetFromUTCDateTime(iTimeshiftStartTime);
std::string strTimeshiftStartTime = tmp.GetAsLocalizedTime("", false);
time_t iTimeshiftEndTime = g_PVRClients->GetBufferTimeEnd();
tmp.SetFromUTCDateTime(iTimeshiftEndTime);
std::string strTimeshiftEndTime = tmp.GetAsLocalizedTime("", false);
time_t iTimeshiftPlayTime = g_PVRClients->GetPlayingTime();
tmp.SetFromUTCDateTime(iTimeshiftPlayTime);
std::string strTimeshiftPlayTime = tmp.GetAsLocalizedTime("", true);
CSingleLock lock(m_critSection);
m_bIsTimeshifting = bIsTimeshifting;
m_iTimeshiftStartTime = iTimeshiftStartTime;
m_iTimeshiftEndTime = iTimeshiftEndTime;
m_iTimeshiftPlayTime = iTimeshiftPlayTime;
m_strTimeshiftStartTime = strTimeshiftStartTime;
m_strTimeshiftEndTime = strTimeshiftEndTime;
m_strTimeshiftPlayTime = strTimeshiftPlayTime;
}
示例2:
const CDateTime &CPVRTimerInfoTag::EndAsLocalTime(void) const
{
static CDateTime tmp;
tmp.SetFromUTCDateTime(m_StopTime);
return tmp;
}
示例3:
const CDateTime &CEpgInfoTag::EndAsLocalTime(void) const
{
static CDateTime tmp;
tmp.SetFromUTCDateTime(m_endTime);
return tmp;
}
示例4: FirstAiredAsLocalTime
CDateTime CEpgInfoTag::FirstAiredAsLocalTime(void) const
{
CDateTime retVal;
CSingleLock lock(m_critSection);
retVal.SetFromUTCDateTime(m_firstAired);
return retVal;
}
示例5: EndAsLocalTime
CDateTime CEpgInfoTag::EndAsLocalTime(void) const
{
CDateTime retVal;
CSingleLock lock(m_critSection);
retVal.SetFromUTCDateTime(m_endTime);
return retVal;
}
示例6:
const CDateTime &CPVRRecording::RecordingTimeAsLocalTime(void) const
{
static CDateTime tmp;
tmp.SetFromUTCDateTime(m_recordingTime);
return tmp;
}
示例7: lock
const CDateTime &CPVRTimerInfoTag::FirstDayAsLocalTime(void) const
{
static CDateTime tmp;
CSingleLock lock(m_critSection);
tmp.SetFromUTCDateTime(m_FirstDay);
return tmp;
}
示例8: UpdateViewTimeline
void CGUIWindowPVRGuide::UpdateViewTimeline(void)
{
CPVRChannel CurrentChannel;
bool bGotCurrentChannel = g_PVRManager.GetCurrentChannel(CurrentChannel);
bool bRadio = bGotCurrentChannel ? CurrentChannel.IsRadio() : false;
CDateTime gridStart = CDateTime::GetCurrentDateTime();
CDateTime firstDate; firstDate.SetFromUTCDateTime(g_EpgContainer.GetFirstEPGDate());
CDateTime lastDate; lastDate.SetFromUTCDateTime(g_EpgContainer.GetLastEPGDate());
m_parent->m_guideGrid = (CGUIEPGGridContainer*) m_parent->GetControl(CONTROL_LIST_TIMELINE);
if (!m_parent->m_guideGrid)
return;
m_parent->SetLabel(m_iControlButton, g_localizeStrings.Get(19222) + ": " + g_localizeStrings.Get(19032));
m_parent->SetLabel(CONTROL_LABELGROUP, g_localizeStrings.Get(19032));
g_PVRManager.GetPlayingGroup(bRadio)->GetEPGAll(*m_parent->m_vecItems);
m_parent->m_vecItems->RemoveDiscCache(m_parent->GetID());
m_parent->m_guideGrid->SetStartEnd(firstDate > gridStart ? firstDate : gridStart, lastDate);
m_parent->m_viewControl.SetCurrentView(CONTROL_LIST_TIMELINE);
SelectPlayingFile();
}
示例9: Get
int CEpg::Get(CFileItemList &results) const
{
int iInitialSize = results.Size();
CSingleLock lock(m_critSection);
for (map<CDateTime, CEpgInfoTag *>::const_iterator it = m_tags.begin(); it != m_tags.end(); it++)
{
CDateTime localStartTime;
localStartTime.SetFromUTCDateTime(it->first);
CFileItemPtr entry(new CFileItem(*it->second));
entry->SetLabel2(localStartTime.GetAsLocalizedDateTime(false, false));
results.Add(entry);
}
return results.Size() - iInitialSize;
}
示例10: FirstAiredAsLocalTime
CDateTime CEpgInfoTag::FirstAiredAsLocalTime(void) const
{
CDateTime retVal;
retVal.SetFromUTCDateTime(m_firstAired);
return retVal;
}
示例11: EndTimeAsLocalTime
CDateTime CPVRRecording::EndTimeAsLocalTime() const
{
CDateTime ret;
ret.SetFromUTCDateTime(EndTimeAsUTC());
return ret;
}
示例12: StartAsLocalTime
CDateTime CEpgInfoTag::StartAsLocalTime(void) const
{
CDateTime retVal;
retVal.SetFromUTCDateTime(m_startTime);
return retVal;
}
示例13: EndAsLocalTime
CDateTime CEpgInfoTag::EndAsLocalTime(void) const
{
CDateTime retVal;
retVal.SetFromUTCDateTime(m_endTime);
return retVal;
}
示例14: FirstDayAsLocalTime
CDateTime CPVRTimerInfoTag::FirstDayAsLocalTime(void) const
{
CDateTime retVal;
retVal.SetFromUTCDateTime(m_FirstDay);
return retVal;
}
示例15: EndAsLocalTime
CDateTime CPVRTimerInfoTag::EndAsLocalTime(void) const
{
CDateTime retVal;
retVal.SetFromUTCDateTime(m_StopTime);
return retVal;
}