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 {
221
221
implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutineVersion " )
222
222
implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationVersion " )
223
223
implementation(" io.ktor:ktor-client-core:$ktorVersion " )
224
+ implementation(" com.soywiz.korlibs.klock:klock:$klockVersion " )
224
225
}
225
226
}
226
227
@@ -290,7 +291,6 @@ kotlin {
290
291
dependsOn(commonMain)
291
292
292
293
dependencies {
293
- implementation(" com.soywiz.korlibs.klock:klock:$klockVersion " )
294
294
implementation(" io.ktor:ktor-client-curl:$ktorVersion " )
295
295
}
296
296
}
@@ -301,10 +301,6 @@ kotlin {
301
301
302
302
val linuxX64Main by getting {
303
303
dependsOn(desktopMain)
304
-
305
- dependencies {
306
- implementation(" com.soywiz.korlibs.klock:klock-linuxx64:$klockVersion " )
307
- }
308
304
}
309
305
310
306
val linuxX64Test by getting {
@@ -313,10 +309,6 @@ kotlin {
313
309
314
310
val mingwX64Main by getting {
315
311
dependsOn(desktopMain)
316
-
317
- dependencies {
318
- implementation(" com.soywiz.korlibs.klock:klock-mingwx64:$klockVersion " )
319
- }
320
312
}
321
313
322
314
val mingwX64Test by getting {
@@ -325,10 +317,6 @@ kotlin {
325
317
326
318
val macosX64Main by getting {
327
319
dependsOn(desktopMain)
328
-
329
- dependencies {
330
- implementation(" com.soywiz.korlibs.klock:klock-macosx64:$klockVersion " )
331
- }
332
320
}
333
321
334
322
val macosX64Test by getting {
Original file line number Diff line number Diff line change 1
1
/* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: Adam Ratzman */
2
2
package com.adamratzman.spotify.utils
3
3
4
- import com.soywiz.klock.DateTime
5
4
import kotlin.system.getTimeMillis
6
5
7
6
/* *
@@ -10,7 +9,3 @@ import kotlin.system.getTimeMillis
10
9
public actual fun getCurrentTimeMs (): Long {
11
10
return getTimeMillis()
12
11
}
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