Example usage for org.joda.time DateTime withChronology

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

Introduction

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

Prototype

public DateTime withChronology(Chronology newChronology) 

Source Link

Document

Returns a copy of this datetime with a different chronology.

Usage

From source file:org.ldp4j.application.data.Literals.java

License:Apache License

private static DateTime normalizeChronology(DateTime dateTime) {
    return dateTime.withChronology(ISOChronology.getInstance());
}

From source file:TVShowTimelineMaker.util.JodaTimeUtil.java

public String writeTimeString(DateTime ObjectToWrite) {
    DateTime withChronology = ObjectToWrite.withChronology(null);
    return withChronology.toString();
}

From source file:TVShowTimelineMaker.util.JodaTimeUtil.java

public DateTime readTimeString(String timeString, Chronology inType) {
    DateTime parse = DateTime.parse(timeString);
    return parse.withChronology(inType);
}