2 #include <msp/strings/format.h>
14 TimeZone::TimeZone(int minutes):
20 name = format("UTC%c%d", (minutes<0 ? '-' : '+'), m/60);
22 name += format(":%02d", m%60);
28 TimeZone::TimeZone(int minutes, const string &n):
33 const TimeZone &TimeZone::utc()
35 static TimeZone tz(0);
39 const TimeZone &TimeZone::local()
41 static TimeZone tz = platform_get_local_timezone();