How to get current utc time in kmm ? I tried below code but it gives time 01/01/1970 and it return 0 value.
DateTime.now().utc.milliseconds
How to get current utc time in kmm ? I tried below code but it gives time 01/01/1970 and it return 0 value.
DateTime.now().utc.milliseconds
If you're using kotlinx-datetime then simply doing
Clock.System.now()would provide time in UTC.Not sure what
DateTimeobject you're using in your question!