• 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: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 15 Feb 2005 14:08:03 +0100

Folks,

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.

Would be a little dangerous when we go over 350 days, though, it could start factoring in leap years and odd stuff like that...

At 13:09 Uhr +0100 15.02.2005, Andreas Mayer wrote:
Am 15. Feb 2005 um 12:40 Uhr schrieb M. Uli Kusterer:

Too bad we don't have metric time yet ... would make programming a lot easier, wouldn't it? ;-)

Just display seconds only and it is as metric as it can get. :-)

At 86,400 seconds per day??? -- Cheers, M. Uli Kusterer ------------------------------------------------------------ "The Witnesses of TeachText are everywhere..." http://www.zathras.de _______________________________________________ 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:
    • OT: "metric" time
      • From: Andreas Mayer <email@hidden>
    • Re: Formatting integer value
      • From: Andy Armstrong <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>)

  • Prev by Date: Re: Formatting integer value
  • Next by Date: No new connections after exception on writeData:
  • Previous by thread: Re: Formatting integer value
  • Next by thread: Re: Formatting integer value
  • Index(es):
    • Date
    • Thread