Created
May 22, 2019 08:22
-
-
Save bohdanszymanik/8fba635a021ea2f22eac0143025f9662 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.time.LocalDateTime | |
| import java.time.format.DateTimeFormatter | |
| fun main(args : Array<String>) { | |
| var value1 = 1 | |
| var value2 = "2" | |
| var value3 = 3.0 | |
| var value4 = 4.0 | |
| println(java.lang.String.format("%d, %s, %6f : %3f", value1, value2, value3, value4)) | |
| val dt = LocalDateTime.now() | |
| val ds = DateTimeFormatter.ofPattern("yyyyMMddHHmm") | |
| println("${dt.format(ds)}") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment