public class TestCurrentHourProvider extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
Constructor and Description |
---|
TestCurrentHourProvider() |
Modifier and Type | Method and Description |
---|---|
void |
testWithEnvironmentEdge()
In timezone GMT+08:00, the unix time of 2020-08-20 11:52:41 is 1597895561000
and the unix time of 2020-08-20 15:04:00 is 1597907081000,
by calculating the delta time to get expected time in current timezone,
then we can get special hour no matter which timezone it runs.
|
public static final HBaseClassTestRule CLASS_RULE
public TestCurrentHourProvider()
public void testWithEnvironmentEdge()
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.