当前位置: 首页>>代码示例>>C++>>正文


C++ CDateTime::SetFromUTCDateTime方法代码示例

本文整理汇总了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;
}
开发者ID:AchimTuran,项目名称:xbmc,代码行数:27,代码来源:PVRGUIInfo.cpp

示例2:

const CDateTime &CPVRTimerInfoTag::EndAsLocalTime(void) const
{
  static CDateTime tmp;
  tmp.SetFromUTCDateTime(m_StopTime);

  return tmp;
}
开发者ID:macardi,项目名称:xbmc,代码行数:7,代码来源:PVRTimerInfoTag.cpp

示例3:

const CDateTime &CEpgInfoTag::EndAsLocalTime(void) const
{
  static CDateTime tmp;
  tmp.SetFromUTCDateTime(m_endTime);

  return tmp;
}
开发者ID:macardi,项目名称:xbmc,代码行数:7,代码来源:EpgInfoTag.cpp

示例4: FirstAiredAsLocalTime

CDateTime CEpgInfoTag::FirstAiredAsLocalTime(void) const
{
  CDateTime retVal;
  CSingleLock lock(m_critSection);
  retVal.SetFromUTCDateTime(m_firstAired);
  return retVal;
}
开发者ID:topfs2,项目名称:xbmc-cmake,代码行数:7,代码来源:EpgInfoTag.cpp

示例5: EndAsLocalTime

CDateTime CEpgInfoTag::EndAsLocalTime(void) const
{
  CDateTime retVal;
  CSingleLock lock(m_critSection);
  retVal.SetFromUTCDateTime(m_endTime);
  return retVal;
}
开发者ID:topfs2,项目名称:xbmc-cmake,代码行数:7,代码来源:EpgInfoTag.cpp

示例6:

const CDateTime &CPVRRecording::RecordingTimeAsLocalTime(void) const
{
  static CDateTime tmp;
  tmp.SetFromUTCDateTime(m_recordingTime);

  return tmp;
}
开发者ID:mikesilvo164,项目名称:xbmc,代码行数:7,代码来源:PVRRecording.cpp

示例7: lock

const CDateTime &CPVRTimerInfoTag::FirstDayAsLocalTime(void) const
{
  static CDateTime tmp;
  CSingleLock lock(m_critSection);
  tmp.SetFromUTCDateTime(m_FirstDay);

  return tmp;
}
开发者ID:Omel,项目名称:xbmc,代码行数:8,代码来源:PVRTimerInfoTag.cpp

示例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();
}
开发者ID:Kr0nZ,项目名称:xbmc,代码行数:22,代码来源:GUIWindowPVRGuide.cpp

示例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;
}
开发者ID:Omel,项目名称:xbmc,代码行数:18,代码来源:Epg.cpp

示例10: FirstAiredAsLocalTime

CDateTime CEpgInfoTag::FirstAiredAsLocalTime(void) const
{
  CDateTime retVal;
  retVal.SetFromUTCDateTime(m_firstAired);
  return retVal;
}
开发者ID:Distrotech,项目名称:xbmc,代码行数:6,代码来源:EpgInfoTag.cpp

示例11: EndTimeAsLocalTime

CDateTime CPVRRecording::EndTimeAsLocalTime() const
{
  CDateTime ret;
  ret.SetFromUTCDateTime(EndTimeAsUTC());
  return ret;
}
开发者ID:FLyrfors,项目名称:xbmc,代码行数:6,代码来源:PVRRecording.cpp

示例12: StartAsLocalTime

CDateTime CEpgInfoTag::StartAsLocalTime(void) const
{
  CDateTime retVal;
  retVal.SetFromUTCDateTime(m_startTime);
  return retVal;
}
开发者ID:Distrotech,项目名称:xbmc,代码行数:6,代码来源:EpgInfoTag.cpp

示例13: EndAsLocalTime

CDateTime CEpgInfoTag::EndAsLocalTime(void) const
{
  CDateTime retVal;
  retVal.SetFromUTCDateTime(m_endTime);
  return retVal;
}
开发者ID:Distrotech,项目名称:xbmc,代码行数:6,代码来源:EpgInfoTag.cpp

示例14: FirstDayAsLocalTime

CDateTime CPVRTimerInfoTag::FirstDayAsLocalTime(void) const
{
    CDateTime retVal;
    retVal.SetFromUTCDateTime(m_FirstDay);
    return retVal;
}
开发者ID:nzchris,项目名称:xbmc,代码行数:6,代码来源:PVRTimerInfoTag.cpp

示例15: EndAsLocalTime

CDateTime CPVRTimerInfoTag::EndAsLocalTime(void) const
{
    CDateTime retVal;
    retVal.SetFromUTCDateTime(m_StopTime);
    return retVal;
}
开发者ID:nzchris,项目名称:xbmc,代码行数:6,代码来源:PVRTimerInfoTag.cpp


注:本文中的CDateTime::SetFromUTCDateTime方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。