I would like to use an enum that includes WEEKS, MONTHS, YEARS.
The java.util.concurrent.TimeUnit
enum only goes up to DAYS . Is such an enum defined in the java language?
您可以使用ChronoUnit-它甚至高达CENTURIES和ERAS。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.