added: TimeZone struct (core)

this class has information about a time zone (utf offset, daylight saving time)
       and methods for converting between UTC and local time
       structs User and Config has a TimeZone object
       System::ToLocal() and System::ToUTC() uses it for converting
       (depending whether a user is logged or not)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@842 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-05-30 19:04:18 +00:00
parent 9d5d088b4a
commit ec773e5f29
31 changed files with 1505 additions and 1150 deletions

View File

@@ -134,10 +134,13 @@ public:
Error AddFile(Item & item, int notify_code = 0, bool call_plugins = true);
Error EditFile(Item & item, bool with_url = true, int notify_code = 0, bool call_plugins = true);
// converting GMT time to local time (different for each user)
// !! IMPROVE ME will be removed or changed
time_t LocalTime(time_t gmt_time);
PT::Date LocalTime(const PT::Date & date);
time_t ToLocal(time_t gmt_time);
PT::Date ToLocal(const PT::Date & gmt_date);
time_t ToUTC(time_t local_time);
PT::Date ToUTC(const PT::Date & local_date);
int FollowLink(const std::vector<Item*> & current_dir_tab, const std::wstring & link_to,
std::vector<Item*> & out_dir_tab, Item & out_item);