MythTV  master
Functions
UPnPDateTime Namespace Reference

Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications. More...

Functions

QString DurationFormat (std::chrono::milliseconds msec)
 Duration Format. More...
 
QString TimeFormat (QTime time)
 Time Format. More...
 
QString TimeFormat (std::chrono::milliseconds msec)
 Time Format. More...
 
QString DateTimeFormat (const QDateTime &dateTime)
 Date-Time Format. More...
 
QString NamedDayFormat (const QDateTime &dateTime)
 Named-Day Format. More...
 
QString NamedDayFormat (QDate date)
 Named-Day Format. More...
 
QString resDurationFormat (std::chrono::milliseconds msec)
 res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013 More...
 

Detailed Description

Helpers for formatting dates and times to UPnP, DLNA and Dublin Core specifications.

NOTE These are for formatting to the UPnP related specs or extracting data from UPnP formatted strings ONLY.

Function Documentation

◆ DurationFormat()

UPNP_PUBLIC QString UPnPDateTime::DurationFormat ( std::chrono::milliseconds  msec)

Duration Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 10 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings().

◆ TimeFormat() [1/2]

UPNP_PUBLIC QString UPnPDateTime::TimeFormat ( QTime  time)

Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 31 of file upnphelpers.cpp.

Referenced by DurationFormat().

◆ TimeFormat() [2/2]

UPNP_PUBLIC QString UPnPDateTime::TimeFormat ( std::chrono::milliseconds  msec)

Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 37 of file upnphelpers.cpp.

◆ DateTimeFormat()

UPNP_PUBLIC QString UPnPDateTime::DateTimeFormat ( const QDateTime &  dateTime)

Date-Time Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 43 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().

◆ NamedDayFormat() [1/2]

UPNP_PUBLIC QString UPnPDateTime::NamedDayFormat ( const QDateTime &  dateTime)

Named-Day Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 49 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings().

◆ NamedDayFormat() [2/2]

UPNP_PUBLIC QString UPnPDateTime::NamedDayFormat ( QDate  date)

Named-Day Format.

UPnP ContentDirectory Service 2008, 2013 Appendix D.1 Date&Time Syntax

Definition at line 54 of file upnphelpers.cpp.

◆ resDurationFormat()

UPNP_PUBLIC QString UPnPDateTime::resDurationFormat ( std::chrono::milliseconds  msec)

res@duration Format B.2.1.4 res@duration - UPnP ContentDirectory Service 2008, 2013

Definition at line 81 of file upnphelpers.cpp.

Referenced by UPnpCDSTv::LoadRecordings(), UPnpCDSMusic::LoadTracks(), and UPnpCDSVideo::LoadVideos().