devxlogo

Get the Current DataTime in Your Palm Application

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.

See also  Why ChatGPT Is So Important Today
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist