Commit Graph

6 Commits

Author SHA1 Message Date
Tomasz Sowa 03bac5721d added:
Date(const char * str);
       Date(const wchar_t * str);
       Date(const std::string & str);
       Date(const std::wstring & str);
 
       Date & operator=(const char * str);
       Date & operator=(const wchar_t * str);
       Date & operator=(const std::string & str);
       Date & operator=(const std::wstring & str);

       void Swap(Date&);
removed:
       templates cctors and operators=
       it is better to have directly char*, wchar_t and string, wstring



git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@414 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-26 22:38:18 +00:00
Tomasz Sowa 27cde22774 fixed: two operators: Date::operator=(const CStringType)
need 'return' statement


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@413 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-24 19:24:37 +00:00
Tomasz Sowa 0ffb2b155f added: some methods for parsing from a string
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@412 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-22 23:47:41 +00:00
Tomasz Sowa e25bc826e7 changed: Date::SerializeDay outputs the date in a form of YYYY-MM-DD (before was: YYYY.MM.DD)
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@411 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-13 21:49:06 +00:00
Tomasz Sowa c8cf401316 some cosmetic changes in date.h
git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@406 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-05 15:13:45 +00:00
Tomasz Sowa 3280568594 added: Date structure -- represents year, month, day, hour, min, sec
with O(1) algorithm for converting from time_t (seconds from Unix epoch)


git-svn-id: svn://ttmath.org/publicrep/pikotools/trunk@405 e52654a7-88a9-db11-a3e9-0013d4bc506e
2012-05-05 15:08:04 +00:00