• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Formatting integer value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatting integer value


  • Subject: Re: Formatting integer value
  • From: Andy Armstrong <email@hidden>
  • Date: Tue, 15 Feb 2005 13:42:16 +0000

On 15 Feb 2005, at 13:08, M. Uli Kusterer wrote:
I think I know an even easier way to get the hours, minutes etc. out of this time. IIRC the OP said the entire value was milliseconds? Aren't there some timestamp APIs that take milliseconds? (Maybe that was Carbon, not sure anymore whether NSDate also accepts those) So, I'd guess one could just treat this as a date and extract the number of the day and the time as time differences.

I'm assuming this is a joke and I'm just missing the irony? If so, sorry but...


WTF? When did we start needing an API to do simple integer arithmetic? It's a time in milliseconds FFS!

What next? "I want to multiply two numbers together and maybe add a third to them - can anyone tell me if there's an API for this kind of thing?"

--
Andy Armstrong, hexten.net

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Formatting integer value
      • From: Guy English <email@hidden>
References: 
 >Formatting integer value (From: RenĂ© Korthaus <email@hidden>)
 >Re: Formatting integer value (From: Charlton Wilbur <email@hidden>)
 >Re: Formatting integer value (From: "M. Uli Kusterer" <email@hidden>)
 >Re: Formatting integer value (From: Andreas Mayer <email@hidden>)
 >Re: Formatting integer value (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: Implementing the Dock genie effect in windows
  • Next by Date: Out-of-order enter/exit events
  • Previous by thread: Re: Formatting integer value
  • Next by thread: Re: Formatting integer value
  • Index(es):
    • Date
    • Thread