Thomas,

You're not really dealing with a date/time scope on this problem.  The context is more of an interval/duration context.  See org.apache.commons.lang.time.DurationFormatUtils.  I think you'll find a solution there.

Jon

February 16, 2013 8:42 AM
I've never seen the zeroth hour listed as 24:00.

My opinion is that you will have to get the string, massage it and present the string not as a timestamp but as a string.


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/lists%40lochgarman.com

This email sent to [email protected]
February 16, 2013 8:26 AM
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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/lists%40lochgarman.com

This email sent to [email protected]
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to