Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:03:40+00:00 2026-06-11T21:03:40+00:00

I have developed a simple utility for my iPhone and iPad apps which places

  • 0

I have developed a simple utility for my iPhone and iPad apps which places a small watermark view in the bottom right corner of the app showing the bundle version, and indicating that the app is still in development (You’d be amazed how many clients get given a test version as part of the agile process, show it to their colleagues without telling them it is a test version, and we get flak because of it).

As part of this, I would like to include the date that that particular build of the app was compiled. For example, if I compiled it at 8.53 AM on Monday the 24th of September, 2012, it would say just that on the watermark. In the course of a day, I often send out many builds to many people, fixing lots of small issues, especially in the later stages of development when I am tweaking UI and polishing. It would be rather helpful to be able to compare the date of a build against version control messages and suchlike, as often different testers will report on fixed issues. There is not much point incrementing version numbers for simple things like shifting a label, or correcting spelling typo’s, until a good days work is done.

Now that you have my motivation, I was wondering if there is a way to set, at compile time, the time when compilation occured. I am hoping it is some sort of C macro I can set to assign the value to a variable.

Does anyone know if this is possible or not.

Thanks in advance.

EDIT: I found it. I cannot believe none of my other googles turned this up. Typical it is found right after I ask the question. For anyone interested, it is this code. Or, if an admin wants to remove this as frivolous, that’s fine too 🙂

NSLog(@"%s %s %s",__DATE__, __TIME__, __TIMESTAMP__);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T21:03:41+00:00Added an answer on June 11, 2026 at 9:03 pm

    In C, the predefined macro names __TIME__ and __DATE__ expand to string literals containing the compilation time and date respectively.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a simple location aware iPhone application which is functionally working very
I have developed a simple API to allow communication between my Android/iPhone apps and
I have developed a simple server using Tomcat which runs a servlet. The servlet
I have developed a simple NFC app which will launch after sensing the NFC
I have developed a simple application using SDK(Android: 3.2[API-13]) for, to display Google banners.
I have developed a simple library in Ruby and need to use this in
I am new to rails and have developed a simple rails application on my
On Windows 7, VB.NET Express, I have developed a simple Forms application. I don't
I have over 1000 clients and I developed a simple PHP script to loop
I have a simple windows Service developed in VS.net 2008 and VB.net. When I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.