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

Method parseDateTimeStringRelativeN

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

Source from the content-addressed store, hash-verified

119 }
120
121 @Test
122 public void parseDateTimeStringRelativeN() {
123 long t = DateTime.parseDateTimeString("2n-ago", null);
124 long x = 2 * 30 * 3600 * 24;
125 x *= 1000;
126 assertEquals(x, (System.currentTimeMillis() - t));
127 }
128
129 @Test
130 public void parseDateTimeStringRelativeY() {

Callers

nothing calls this directly

Calls 2

parseDateTimeStringMethod · 0.95
currentTimeMillisMethod · 0.45

Tested by

no test coverage detected