https://kotlinlang.org logo
Join SlackCommunities
Powered by
# klock
  • a

    alex009

    06/22/2019, 5:19 PM
    @Deactivated User hello! Do you plan to update klock to kotlin 1.3.40? want native version update
  • s

    serebit

    06/29/2019, 7:58 PM
    +1 for klock update to 1.3.40
  • a

    alex009

    06/30/2019, 9:26 AM
    @serebit it's already updated - version 1.5.0 available on korlibs bintray
    a
    • 2
    • 2
  • a

    adiba

    07/29/2019, 11:03 AM
    Just trying to setup klock and running into a few issues regarding configuration
  • a

    adiba

    07/29/2019, 11:04 AM
    does anyone have this up and running in their projects and is anyone using the TimeProvider in tests?
  • d

    Deactivated User

    11/15/2019, 7:04 PM
    #klock 1.8.0 released! Compiled against #Kotlin 1.3.60 and supporting #tvOS and #watchOS — https://github.com/korlibs/klock/releases/tag/release-1.8.0
  • l

    LeoColman

    01/16/2020, 2:05 PM
    Hey!
  • l

    LeoColman

    01/16/2020, 2:06 PM
    Just wanted to let you know that we plan to support some assertions for Klock specific types at #kotlintest
    d
    • 2
    • 1
  • l

    LeoColman

    01/16/2020, 2:06 PM
    https://github.com/kotlintest/kotlintest/issues/1156
  • l

    LeoColman

    01/16/2020, 2:14 PM
    If you want to discuss this with us, we're eager for it 🙂
  • d

    dambakk

    01/22/2020, 12:45 PM
    This was a cute little channel 🙂 I’m trying to parse a date, but get a
    Not a valid format
    exception. I’ve tried it against NSDateFormatter.com and works there. Can anyone spot the mistake?
    Copy code
    DateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").parse("2020-01-22T00:00:00.000+0000")
  • l

    LeoColman

    01/22/2020, 4:14 PM
    What's the use for
    '
    and
    +
    ?
  • l

    LeoColman

    01/22/2020, 4:14 PM
    Both of them are in one side but not on the other
  • d

    dambakk

    01/22/2020, 4:35 PM
    Yeah, the
    '
    was a desperate attempt, I’ve tried without it as well with no luck. The
    +
    , however, is what I receive from server and is part of an RFC I believe and denotes offsett from UTC or something. And according to this site (https://nsdateformatter.com/), the
    Z
    in my format string is the
    +0000
    counterpart.
  • l

    LeoColman

    01/22/2020, 4:56 PM
    But you didn't put it as part of the DateFormat, right?
  • l

    LeoColman

    01/22/2020, 4:57 PM
    Shouldn't they be there?
  • l

    LeoColman

    01/22/2020, 4:57 PM
    Idk
  • d

    dambakk

    01/23/2020, 7:30 AM
    Yeah, I did, I think the
    Z
    =
    +0000
    in my case
  • d

    dambakk

    01/23/2020, 12:04 PM
    Just a quick update.. I got it working when changing the date I received to
    "2020-01-22T00:00:00.000Z"
    (removing
    +0000
    and adding
    Z
    on the end) and parsing it with the
    "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
    filter. Should this maybe be an issue? I think the offset at the end (
    +0000
    and similar) is a part of the ISO 8601 standard: https://en.wikipedia.org/wiki/ISO_8601#Time_offsets_from_UTC. What do you guys think?
  • d

    dambakk

    01/23/2020, 2:39 PM
    I can help develop if someone would like to join me! 🙂
  • m

    Michal Janos

    07/18/2020, 4:25 PM
    Hi I'm new with kotlin, so my question may be stupid, but are there someone, who have correctly implement
    klock
    to multiplatform? I have implemented 1.11.13, everything works fine, with using
    npm link
    , but it is not possible to publish it to my private nexus NPM repo what I try, is to change package.json, and change it to my scope before publish, this help me with
    kotlin-source-map-loader
    , but
    klock
    create
    require('klock-root-klock')
    on end of generated js file kotlin multiplatform 1.3.72
  • j

    Joost Klitsie

    07/28/2020, 10:14 AM
    Hello hello! 🙂 Will there be an alpha release for the
    Kotlin 1.4.0-rc
    soon?
    d
    m
    • 3
    • 8
  • z

    zsperske

    08/05/2020, 10:24 PM
    Hello, does anyone know what grammar the DateFormat class uses?
    d
    • 2
    • 3
  • d

    Deactivated User

    08/15/2020, 7:36 AM
    Just released v1.12.0 compiled against Kotlin 1.4
    🎉 3
  • d

    dambakk

    10/19/2020, 12:37 PM
    Just posted an issue/question if someone know the answer: https://github.com/korlibs/klock/issues/146
    👍 1
    d
    • 2
    • 2
  • d

    Deactivated User

    10/20/2020, 12:24 PM
    Hey guys, have a favour to ask you all. We have a PR related to klock here: https://github.com/korlibs/klock/pull/147/files this is a PR that is affecting several languages changing the capitalization of months and weekdays. Since there are people from different countries, could you check if makes sense for your own language and comment the issue for your own language? That will be really appreciated 🙌
    ☝️ 1
    💯 1
    🙏 1
    ➕ 2
  • d

    dambakk

    10/21/2020, 11:43 AM
    We are still looking for people to verify month/weekday translations for the following languages: • Spanish • French • Japanese • Portuguese • Korean • Chinese If you speak one of those ☝️languages please go to the pull request linked above and check that the tests are correct and give feedback if they are/are not. Also, there is no test for Italian yet if anyone feel like creating it 🙂
    🙏 1
  • d

    Deactivated User

    11/08/2020, 1:16 PM
    🌐 Ignacio Carrión Navarro, added support for ordinals on dates the other day. The initial implementation only supports english numbers: 1st, 2nd, 3rd, 4th... We need your help to translate the ordinal literals into other languages here: https://github.com/korlibs/klock/issues/153 Thank you in advance! simple smile
  • b

    Bohdan Yevtushenko

    02/01/2021, 12:16 PM
    Hello, is it possible to get the first day of week in milliseconds in this library?
    d
    • 2
    • 1
  • c

    Carlos Ballesteros Velasco

    05/15/2023, 8:29 AM
    Hey folks 👋 I would like to know if some of you are still using the
    WDateTime
    and variants that were introduced to be usable from swift/objc. It was removed from 4.0.0 but could be reintroduced in 4.0.1 if some of you are still using it. If so, please, could you comment in this PR? https://github.com/korlibs/korge/pull/1604 Thanks!