branch | RCL_3 |
changeset 21 | 4376525cdefb |
parent 14 | 04becd199f91 |
child 24 | 6c158198356e |
--- a/javacommons/security/src.s60/telutils.cpp Wed Jun 09 09:34:07 2010 +0300 +++ b/javacommons/security/src.s60/telutils.cpp Mon Jun 21 15:32:50 2010 +0300 @@ -63,6 +63,18 @@ } } +signed int TelUtils::getSecureTime() +{ + TTime t; + if (t.UniversalTimeSecure()) + { + t.UniversalTime(); + } + TTimeIntervalSeconds sec; + TTime baseTime(MAKE_TINT64(0x00dcddb3 ,0x0f2f8000)); // 1st Jan 1970 + t.SecondsFrom(baseTime, sec); + return sec.Int(); +} void TelUtils::ConstructL() {