Is it possible to get build time of kotlin native ...
# kotlin-native
k
Is it possible to get build time of kotlin native library (framework), by calling library method? E.g. I have kotlin library and method getBuildTime(), which will return time when library was built. If I rebuild framework, it will give different time.
o
stamp.def:
Copy code
package = stamp
---
const char* theDate = __DATE__;
stamp.kt:
Copy code
import stamp.*
import kotlinx.cinterop.*

fun main(args: Array<String>) {
  println("${theDate!!.toKString()}")
}
./dist/bin/cinterop -def stamp.def  -o stamp.klib
./dist/bin/konanc stamp.kt -l stamp.klib -o s
gives
Copy code
>./s.kexe 
Sep 10 2018