获取当前日期/时间. Kotlin

获取当前日期/时间. Kotlin



以默认格式获取当前日期和时间
Kotlin example code

Kotlin

  Output result
Current Date and Time is: 2017-08-02T11:25:44.973
使用模式获取当前日期和时间
Kotlin example code

Kotlin

  Output result
Current Date and Time is: 2017-08-02 11:29:57.401
使用预定义的常量获取当前日期时间
Kotlin example code

Kotlin

  Output result
Current Date is: 20170802
以本地化样式获取当前日期时间
Kotlin example code

Kotlin

  Output result
Current Date is: Aug 2, 2017 11:44:19 AM


.dll file is missing? Download for Windows 7, 8, 10 - Fix .dll file Missing Error on Windows | dll-box.com

BeeCoder.ORG

open source code and examples

We have been online since 2021 and 1 millions of people around the globe have visited our website since then

More visitors every month