tbDate:fix bug now comments 1
This commit is contained in:
parent
e7dc68f18f
commit
e4277cd79c
@ -221,10 +221,6 @@ public class TbDate implements Serializable, Cloneable {
|
||||
public static long now() {
|
||||
return Instant.now().toEpochMilli();
|
||||
}
|
||||
public static String nowToString() {
|
||||
return Instant.now().toString();
|
||||
}
|
||||
|
||||
public long parseSecond() {
|
||||
return instant.getEpochSecond();
|
||||
}
|
||||
|
||||
@ -484,12 +484,6 @@ class TbDateTest {
|
||||
Assert.assertEquals(expected, d.toLocaleString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void TestNow() {
|
||||
assertTrue(TbDate.now() > 0);
|
||||
assertNotNull(TbDate.nowToString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void TestToUTC() {
|
||||
Assert.assertEquals(-2209075200000L, TbDate.UTC(0));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user