Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atlassian.bamboo.utils
Class DurationUtils

    java.lang.Object
      com.atlassian.bamboo.utils.DurationUtils

    public class DurationUtils

extends Object

This class provide some Time formatting methods.

Constructor Summary
`DurationUtils()`

Method Summary
`static String` | `getPrettyPrint(long elapsedTimeMillis)`
`static String` | `getPrettyPrint(long elapsedTimeMillis, boolean isLong)` Formats time to the nearest hour, minute or second.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DurationUtils

    public DurationUtils()

Method Detail

### getPrettyPrint

    public static String getPrettyPrint(long elapsedTimeMillis,
                                        boolean isLong)

  Formats time to the nearest hour, minute or second.

  Note - Currently ignore hours (display them in minutes) see BJ-119

  Parameters:
    `elapsedTimeMillis` - The time
  Returns:
    Nearest time to the nearest hour, minute or second.

### getPrettyPrint

    public static String getPrettyPrint(long elapsedTimeMillis)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006 Atlassian Software Systems. All Rights Reserved.