类 DateFormatter
java.lang.Object
org.apache.pulsar.common.util.DateFormatter
Date-time String formatter utility class.
-
方法概要
-
方法详细资料
-
now
- 返回:
- a String representing the current datetime
-
format
- 返回:
- a String representing a particular timestamp (in milliseconds)
-
format
- 返回:
- a String representing a particular time instant
-
parse
- 参数:
datetime-- 返回:
- the parsed timestamp (in milliseconds) of the provided datetime
- 抛出:
DateTimeParseException
-