tbDate:fix bug now comments 1

This commit is contained in:
nick 2023-11-02 16:13:46 +02:00
parent e7dc68f18f
commit e4277cd79c
2 changed files with 0 additions and 10 deletions

View File

@ -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();
}

View File

@ -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));