24 lines
1.2 KiB
Markdown
24 lines
1.2 KiB
Markdown
[docs](../../index.md) / [net.thauvin.erik.akismet](../index.md) / [Akismet](index.md) / [dateToGmt](./date-to-gmt.md)
|
|
|
|
# dateToGmt
|
|
|
|
`@JvmStatic fun dateToGmt(date: `[`Date`](https://docs.oracle.com/javase/8/docs/api/java/util/Date.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L78)
|
|
|
|
Convert a date to a UTC timestamp. (ISO 8601)
|
|
|
|
**See Also**
|
|
|
|
[AkismetComment.dateGmt](../-akismet-comment/date-gmt.md)
|
|
|
|
[AkismetComment.postModifiedGmt](../-akismet-comment/post-modified-gmt.md)
|
|
|
|
`@JvmStatic fun dateToGmt(date: `[`LocalDateTime`](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDateTime.html)`): `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) [(source)](https://github.com/ethauvin/akismet-kotlin/tree/master/src/main/kotlin/net/thauvin/erik/akismet/Akismet.kt#L91)
|
|
|
|
Convert a locale date/time to a UTC timestamp. (ISO 8601)
|
|
|
|
**See Also**
|
|
|
|
[AkismetComment.dateGmt](../-akismet-comment/date-gmt.md)
|
|
|
|
[AkismetComment.postModifiedGmt](../-akismet-comment/post-modified-gmt.md)
|
|
|