DataLineProcessed.clear();
}
+
+ // Process Standard timezones.
+
+ if (TimezoneStandardCollection.size() > 0){
+
+ for (int TimezoneStandardSeek = 0; TimezoneStandardSeek < TimezoneStandardCollection.size();
+ TimezoneStandardSeek++){
+
+ *SaveData += "BEGIN:STANDARD\n";
+
+ // Process the DTSTART value.
+
+ if (TimezoneStandardCollection[TimezoneStandardSeek].DateTimeStartData.size() > 0){
+
+ if (TimezoneStandardCollection[TimezoneStandardSeek].DateTimeStartTokens.size() > 0){
+
+ DataLine += "DTSTART;";
+ DataLine += TimezoneStandardCollection[TimezoneStandardSeek].DateTimeStartTokens;
+
+ } else {
+
+ DataLine += "DTSTART";
+
+ }
+
+ DataLine += ":";
+ DataLine += TimezoneStandardCollection[TimezoneStandardSeek].DateTimeStartData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
+ *SaveData += "END:STANDARD\n";
+
+ }
+
+ }
+
+ // Process Daylight timezones.
+
+ if (TimezoneDaylightCollection.size() > 0){
+
+ for (int TimezoneDaylightSeek = 0; TimezoneDaylightSeek < TimezoneDaylightCollection.size();
+ TimezoneDaylightSeek++){
+
+ *SaveData += "BEGIN:DAYLIGHT\n";
+
+ // Process the DTSTART value.
+
+ if (TimezoneDaylightCollection[TimezoneDaylightSeek].DateTimeStartData.size() > 0){
+
+ if (TimezoneStandardCollection[TimezoneDaylightSeek].DateTimeStartTokens.size() > 0){
+
+ DataLine += "DTSTART;";
+ DataLine += TimezoneDaylightCollection[TimezoneDaylightSeek].DateTimeStartTokens;
+
+ } else {
+
+ DataLine += "DTSTART";
+
+ }
+
+ DataLine += ":";
+ DataLine += TimezoneDaylightCollection[TimezoneDaylightSeek].DateTimeStartData;
+ DataLine += "\n";
+
+ DataLineProcessed = OutputText(&DataLine);
+
+ *SaveData += DataLineProcessed;
+
+ DataLine.clear();
+ DataLineProcessed.clear();
+
+ }
+
+ *SaveData += "END:DAYLIGHT\n";
+
+ }
+
+ }
*SaveData += "END:VTIMEZONE\n";
"TZID;OTHER=PARAM:Example/Starrgazy\n"
"LAST-MODIFIED;FUTURE=ODD:20160203T200700Z\n"
"TZURL;URL=YES:http://www.example.com/\n"
+ "BEGIN:STANDARD\n"
+ "DTSTART:20160204T020000\n"
+ "END:STANDARD\n"
+ "BEGIN:STANDARD\n"
+ "DTSTART;MEEP=MOO:20160205T020000\n"
+ "END:STANDARD\n"
+ "BEGIN:STANDARD\n"
+ "DTSTART;MEEP=MOO:20160206T020000\n"
+ "END:STANDARD\n"
+ "BEGIN:DAYLIGHT\n"
+ "DTSTART:20160204T020000\n"
+ "END:DAYLIGHT\n"
+ "BEGIN:DAYLIGHT\n"
+ "DTSTART;MEEP=MOO:20160205T020000\n"
+ "END:DAYLIGHT\n"
+ "BEGIN:DAYLIGHT\n"
+ "DTSTART;MEEP=MOO:20160206T020000\n"
+ "END:DAYLIGHT\n"
"END:VTIMEZONE\n"
"END:VCALENDAR";