Kotlin / kotlin-jupyter

Kotlin kernel for Jupyter/IPython
Apache License 2.0
1.1k stars 105 forks source link

Is there any way to work with Date ? #349

Open afaucogney opened 2 years ago

afaucogney commented 2 years ago

I find strange this is not yet available, or at least no visible ! Could be with Joda, Java Date or Date in Koltin Kmp !

My use case is simple, I just need to subtract date between them !

ileasile commented 2 years ago

Hi! Do you mean something like this?

image

It is possible. In case of Java or Kotlin stdlib, just import packages and use them. In case of other JVM libraries (like Joda) you need to include them via @file:DependsOn("group:artifact:version")