Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Enterprise
Expertise: Intermediate
Jul 26, 2002



Application Security Testing: An Integral Part of DevOps

Get the Current DataTime in Your Palm Application

It is a common feature in an application to require the current date time to be displayed in a text field or something similar.

This can be done easily in PalmOS in two steps:
The code is given below:-
UInt32 iTime = TimGetSeconds ();
DateTimePtr dateTimeP;
TimSecondsToDateTime (iTime ,dateTimeP);

TimGetSeconds returns the current date and time of the device in seconds since 12:00 A.M. on January 1, 1904. TimSecondsToDateTime converts the date specified as the number of seconds since January 1,1904 to a DateTimeType structure.
Shiv Gupta
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date