File tree Expand file tree Collapse file tree 5 files changed +25
-18
lines changed
desktopMain/kotlin/com/adamratzman/spotify/utils
linuxX64Main/kotlin/com.adamratzman.spotify.utils
macosX64Main/kotlin/com.adamratzman.spotify.utils
mingwX64Main/kotlin/com.adamratzman.spotify.utils Expand file tree Collapse file tree 5 files changed +25
-18
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ kotlin {
221221 implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion " )
222222 implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion " )
223223 implementation(" io.ktor:ktor-client-core:$ktorVersion " )
224+ implementation(" com.soywiz.korlibs.klock:klock:$klockVersion " )
224225 }
225226 }
226227
@@ -290,7 +291,6 @@ kotlin {
290291 dependsOn(commonMain)
291292
292293 dependencies {
293- implementation(" com.soywiz.korlibs.klock:klock:$klockVersion " )
294294 implementation(" io.ktor:ktor-client-curl:$ktorVersion " )
295295 }
296296 }
@@ -301,10 +301,6 @@ kotlin {
301301
302302 val linuxX64Main by getting {
303303 dependsOn(desktopMain)
304-
305- dependencies {
306- implementation(" com.soywiz.korlibs.klock:klock-linuxx64:$klockVersion " )
307- }
308304 }
309305
310306 val linuxX64Test by getting {
@@ -313,10 +309,6 @@ kotlin {
313309
314310 val mingwX64Main by getting {
315311 dependsOn(desktopMain)
316-
317- dependencies {
318- implementation(" com.soywiz.korlibs.klock:klock-mingwx64:$klockVersion " )
319- }
320312 }
321313
322314 val mingwX64Test by getting {
@@ -325,10 +317,6 @@ kotlin {
325317
326318 val macosX64Main by getting {
327319 dependsOn(desktopMain)
328-
329- dependencies {
330- implementation(" com.soywiz.korlibs.klock:klock-macosx64:$klockVersion " )
331- }
332320 }
333321
334322 val macosX64Test by getting {
Original file line number Diff line number Diff line change 11/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
22package com.adamratzman.spotify.utils
33
4- import com.soywiz.klock.DateTime
54import kotlin.system.getTimeMillis
65
76/* *
@@ -10,7 +9,3 @@ import kotlin.system.getTimeMillis
109public actual fun getCurrentTimeMs (): Long {
1110 return getTimeMillis()
1211}
13-
14- internal actual fun formatDate (format : String , date : Long ): String {
15- return DateTime .now().toString(" yyyy-MM-dd'T'HH:mm:ss" )
16- }
Original file line number Diff line number Diff line change 1+ /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
2+ package com.adamratzman.spotify.utils
3+
4+ import com.soywiz.klock.DateTime
5+
6+ internal actual fun formatDate (format : String , date : Long ): String {
7+ return DateTime .now().toString(" yyyy-MM-dd'T'HH:mm:ss" )
8+ }
Original file line number Diff line number Diff line change 1+ /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
2+ package com.adamratzman.spotify.utils
3+
4+ import com.soywiz.klock.DateTime
5+
6+ internal actual fun formatDate (format : String , date : Long ): String {
7+ return DateTime .now().toString(" yyyy-MM-dd'T'HH:mm:ss" )
8+ }
Original file line number Diff line number Diff line change 1+ /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
2+ package com.adamratzman.spotify.utils
3+
4+ import com.soywiz.klock.DateTime
5+
6+ internal actual fun formatDate (format : String , date : Long ): String {
7+ return DateTime .now().toString(" yyyy-MM-dd'T'HH:mm:ss" )
8+ }
You can’t perform that action at this time.
0 commit comments