Example usage for org.joda.time.base AbstractDateTime toString

List of usage examples for org.joda.time.base AbstractDateTime toString

Introduction

In this page you can find the example usage for org.joda.time.base AbstractDateTime 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:org.powertac.common.TimeService.java

License:Apache License

/**
 * Sets current time to a specific value. Intended for testing purposes only.
 *///from  w w w .  j  ava  2 s . c o m
@StateChange
protected void setCurrentTime(AbstractDateTime time) {
    log.debug("ts" + id + " setCurrentTime to " + time.toString());
    setCurrentTime(new Instant(time));
    //currentTime = new Instant(time);
    //currentDateTime = new DateTime(time, DateTimeZone.UTC);
}