Class DurationParser

java.lang.Object
com.cognite.client.servicesV1.util.DurationParser

public abstract class DurationParser extends Object
This class helps parse duration (on the timeline) from the text-based Cognite api specification. For example, the api allows duration to be specified as "2d" (2 days), "1h-ago" (1 hour ago) etc. This class will translate such text into Duration