Example usage for org.joda.time DateTime toString

List of usage examples for org.joda.time DateTime toString

Introduction

In this page you can find the example usage for org.joda.time DateTime toString.

Prototype

@ToString
public String toString() 

Source Link

Document

Output the date time in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZZ).

Usage

From source file:monasca.api.domain.model.alarmstatehistory.AlarmStateHistory.java

License:Apache License

public void setTimestamp(DateTime timestamp) {
    this.timestamp = Conversions.variantToDateTime(timestamp);
    // Set the id in the AbstractEntity class.
    id = timestamp.toString();
}