Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
String time formats
This is used to process the respective time formats in text fields.
More...
Functions | |
static long | kodi::tools::StringUtils::TimeStringToSeconds (const std::string &timeString) |
Converts a time string to the respective integer value. | |
static std::string | kodi::tools::StringUtils::SecondsToTimeString (long seconds, TIME_FORMAT format=TIME_FORMAT_GUESS) |
Convert a time in seconds to a string based on the given time format. | |
static int | kodi::tools::StringUtils::DateStringToYYYYMMDD (const std::string &dateString) |
Converts a string in the format YYYYMMDD to the corresponding integer value. | |
String time formats
This is used to process the respective time formats in text fields.
|
inlinestatic |
Converts a string in the format YYYYMMDD to the corresponding integer value.
[in] | dateString | The date in the associated format, possible values are:
|
Example:
|
inlinestatic |
Convert a time in seconds to a string based on the given time format.
[in] | seconds | time in seconds |
[in] | format | [opt] The format we want the time in |
Example:
|
inlinestatic |
Converts a time string to the respective integer value.
[in] | timeString | String with time. Following types are possible:
|
Example: