public class DurationUtils extends Object
Constructor and Description |
---|
DurationUtils() |
Modifier and Type | Method and Description |
---|---|
static Duration |
convertDurationFromDaprFormat(String valueString)
Converts time from the String format used by Dapr into a Duration.
|
static String |
convertDurationToDaprFormat(Duration value)
Converts a Duration to the format used by the Dapr runtime.
|
public static Duration convertDurationFromDaprFormat(String valueString)
valueString
- A String representing time in the Dapr runtime's format (e.g. 4h15m50s60ms).Copyright © 2020. All rights reserved.