Go to the source code of this file.
◆ ConvertSecondsToFullTime()
◆ FormatedAsTimestamp()
◆ FormatedNonZero()
string ConvertSecondsToFullTime::FormatedNonZero |
( |
| ) |
|
Definition at line 91 of file TimeConversions.c.
95{
100
102 {
104
108
111
114
117
119 }
120
122 {
123 return string.
Format(
"%1#STR_time_unit_abbrev_day_0 %2#STR_time_unit_abbrev_hour_0 %3#STR_time_unit_abbrev_minute_0 %4#STR_time_unit_abbrev_second_0",
m_Days,
m_Hours,
m_Minutes,
m_Seconds);
124 }
125
127 {
129
131 message +=
string.Format(
"%1#STR_time_unit_abbrev_day_0 ",
m_Days);
133 message +=
string.Format(
"%1#STR_time_unit_abbrev_hour_0 ",
m_Hours);
136
138
140 }
141}
142
144{
151 {
153
156
159
162 }
163}
class FullTimeData ConvertSecondsToFullTime(int timeInSeconds, out FullTimeData fullTime)
transform time in seconds into FullTimeData struct
string FormatedWithZero()
int m_Days int m_Hours int m_Minutes int m_Seconds string FormatedAsTimestamp()
struct that keeps Time relevant information for future formatting
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.
◆ FormatedWithZero()
string ConvertSecondsToFullTime::FormatedWithZero |
( |
| ) |
|
Definition at line 86 of file TimeConversions.c.
90{
95
97 {
99
103
106
109
112
114 }
115
117 {
118 return string.
Format(
"%1#STR_time_unit_abbrev_day_0 %2#STR_time_unit_abbrev_hour_0 %3#STR_time_unit_abbrev_minute_0 %4#STR_time_unit_abbrev_second_0",
m_Days,
m_Hours,
m_Minutes,
m_Seconds);
119 }
120
122 {
124
126 message +=
string.Format(
"%1#STR_time_unit_abbrev_day_0 ",
m_Days);
128 message +=
string.Format(
"%1#STR_time_unit_abbrev_hour_0 ",
m_Hours);
131
133
135 }
136}
137
139{
146 {
148
151
154
157 }
158}