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.


Minimize Date and Time Display Drudgery

Applications that display time and date often use tedious manual string formatting operations, making customization an ornery task. The problem is further aggravated when your app undergoes internationalization and localization. Find out how <ctime>'s strftime() function eases your time and date formatting pain.




Application Security Testing: An Integral Part of DevOps

any moons ago, I presented C++'s basic <ctime> time and date facilities. At that time, however, I didn't demonstrate how to format and customize the date and time. Such customizations may be needed when you localize an application, for example. Although internationalization and localization are notoriously complex, with some help from <ctime>'s function strftime(), you can eliminate much of this drudgery—at least as far as the time and date are concerned.

How do you format the date and time in an easy and portable manner?

Use the strftime() library function.

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