Changeset 79 for trunk/src/corelib


Ignore:
Timestamp:
Jul 10, 2009, 11:19:23 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

Adopted QDateTime to OS/2 (posix).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/tools/qdatetime.cpp

    r24 r79  
    18281828    ct.startTick = GetTickCount() % MSECS_PER_DAY;
    18291829#endif
    1830 #elif defined(Q_OS_UNIX)
     1830#elif defined(Q_OS_UNIX)
    18311831    // posix compliant system
    18321832    struct timeval tv;
     
    18501850    ::time(&ltime);
    18511851    tm *t = 0;
    1852     localtime(&ltime);
     1852    localtime(&ltime);
    18531853    ct.mds = MSECS_PER_HOUR * t->tm_hour + MSECS_PER_MIN * t->tm_min + 1000 * t->tm_sec;
    18541854#endif
Note: See TracChangeset for help on using the changeset viewer.