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

Method parseDateTimeStringRelativeD30

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

Source from the content-addressed store, hash-verified

103 }
104
105 @Test
106 public void parseDateTimeStringRelativeD30() {
107 long t = DateTime.parseDateTimeString("30d-ago", null);
108 long x = 30 * 3600;
109 x *= 24;
110 x *= 1000;
111 assertEquals(x, (System.currentTimeMillis() - t));
112 }
113
114 @Test
115 public void parseDateTimeStringRelativeW() {

Callers

nothing calls this directly

Calls 2

parseDateTimeStringMethod · 0.95
currentTimeMillisMethod · 0.45

Tested by

no test coverage detected