gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated: time lib experiments


From: gnunet
Subject: [libeufin] branch master updated: time lib experiments
Date: Mon, 25 May 2020 16:51:18 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 557cde6  time lib experiments
557cde6 is described below

commit 557cde692c52ae134fc3ee0d77eec60d8379b5e6
Author: MS <address@hidden>
AuthorDate: Mon May 25 16:51:13 2020 +0200

    time lib experiments
---
 util/src/test/kotlin/TimeTest.kt | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/util/src/test/kotlin/TimeTest.kt b/util/src/test/kotlin/TimeTest.kt
new file mode 100644
index 0000000..a91d73f
--- /dev/null
+++ b/util/src/test/kotlin/TimeTest.kt
@@ -0,0 +1,20 @@
+import org.junit.Test
+import java.time.Instant
+import java.time.LocalDate
+import java.time.LocalDateTime
+import java.time.ZoneId
+
+class TimeTest {
+
+    @Test
+    fun importMillis() {
+        fun fromLong(millis: Long): LocalDateTime {
+            return LocalDateTime.ofInstant(
+                Instant.ofEpochMilli(millis),
+                ZoneId.systemDefault()
+            )
+        }
+        val ret = fromLong(0)
+        println(ret.toString())
+    }
+}
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]