Andes Workshop

It is currently Tue Mar 19, 2024 6:18 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Adding Last Build Date & Time in the main code
PostPosted: Wed Oct 07, 2015 12:18 pm 
Offline

Joined: Thu Apr 03, 2014 4:27 pm
Posts: 43
If you need or want the date and/or time the last time your app was built then there are two handy macros you can use. Consider the following example:

char *date = __DATE__; // e.g. 'Dec 15 2009'
char *time = __TIME__; // e.g. '15:25:56'

NSLog(@"Build date: %s", date);
NSLog(@"Build time: %s", time);

Example:
Attachment:
2015_10_05.png
2015_10_05.png [ 14.42 KiB | Viewed 15296 times ]


Attachment:
build_date.zip [41.23 KiB]
Downloaded 1091 times


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group