public class TimestampUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Timestamp |
timestampFromDateTime(org.joda.time.DateTime dateTime)
Creates a timestamp from a DateTime.
|
static Timestamp |
timestampFromString(String time)
Parses a timestamp from a String.
|
public static Timestamp timestampFromString(String time)
time
- The time to be parsed.public static Timestamp timestampFromDateTime(org.joda.time.DateTime dateTime)
dateTime
- The dateTime to create the timestamp at.Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.