This tutorial describes how to retrieve the date and the time from the network.
The following code checks if time information is available, and if so, stores the day information in the variable day.
The code assumes iMobilePhone is an RMobilePhone object.
RMobilePhone::TMobilePhoneNITZ NITZInfo; User::LeaveIfError(iMobilePhone.GetNITZInfo(NITZInfo)); TInt day = -1; if (NITZInfo.iNitzFieldsUsed & RMobilePhone::KCapsTimeAvailable) { day = NITZInfo.Day(); }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.