Skip to content

Commit

Permalink
Add LocalDateTime extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
tangllty committed Jun 12, 2024
1 parent 1ec943c commit be5e7ad
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.tang.commons.kotlin.extensions.time

import java.time.LocalDateTime

/**
* @author Tang
*/

val LocalDateTime.micro: Int get() = this.nano / 1000

val LocalDateTime.milli: Int get() = this.nano / 1000 / 1000

0 comments on commit be5e7ad

Please sign in to comment.