• 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
DateFormat: Format for Time > 24 Hours
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DateFormat: Format for Time > 24 Hours


  • Subject: DateFormat: Format for Time > 24 Hours
  • From: "Thomas Grass (01SoftwareSolutions)" <email@hidden>
  • Date: Sat, 16 Feb 2013 16:26:49 +0100

Hello Community,

i've a question concerning the right way to format time. I have a Time like 32:18:12  (32 Hours, 18 Minutes, 12 Seconds). This time is stored within an NSTimestamp (after calculating something):

NSTimestamp timeToDisplay  = new NSTimestamp(timeAfterCalculation()); //e.g: timeAfterCalculation is in milliseconds 116292000

I want it to display in my component:

TimeToDisplayString : WOString {
  value = timeToDisplay;
  dateformat = "%H:%M:%S";
}

This is the way i usually do. But i can't display times > 24 hours (it starts with 00:00:00 again).

What is the right way to display it? Is there a special date format for this issue?

Thank you very much,
Thomas
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: DateFormat: Format for Time > 24 Hours
      • From: Musall Maik <email@hidden>
    • Re: DateFormat: Format for Time > 24 Hours
      • From: Theodore Petrosky <email@hidden>
  • Prev by Date: Re: ideas to dupe an EO
  • Next by Date: Re: DateFormat: Format for Time > 24 Hours
  • Previous by thread: Re: Mobile to full site page, not refreshed until browser refresh - solved
  • Next by thread: Re: DateFormat: Format for Time > 24 Hours
  • Index(es):
    • Date
    • Thread