MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / parseDateTimeStringRelativeD

Method parseDateTimeStringRelativeD

test/utils/TestDateTime.java:98–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 @Test
99 public void parseDateTimeStringRelativeD() {
100 long t = DateTime.parseDateTimeString("2d-ago", null);
101 long x = 2 * 3600 * 24 * 1000;
102 assertEquals(x, (System.currentTimeMillis() - t));
103 }
104
105 @Test
106 public void parseDateTimeStringRelativeD30() {

Callers

nothing calls this directly

Calls 2

parseDateTimeStringMethod · 0.95
currentTimeMillisMethod · 0.45

Tested by

no test coverage detected