Example usage for org.joda.time DateTimeField set

List of usage examples for org.joda.time DateTimeField set

Introduction

In this page you can find the example usage for org.joda.time DateTimeField set.

Prototype

public abstract long set(long instant, String text, Locale locale);

Source Link

Document

Sets a value in the milliseconds supplied from a human-readable, text value.

Usage

From source file:net.danlew.android.joda.ZoneInfoCompiler.java

License:Apache License

static int parseMonth(String str) {
    DateTimeField field = ISOChronology.getInstanceUTC().monthOfYear();
    return field.get(field.set(0, str, Locale.ENGLISH));
}

From source file:net.danlew.android.joda.ZoneInfoCompiler.java

License:Apache License

static int parseDayOfWeek(String str) {
    DateTimeField field = ISOChronology.getInstanceUTC().dayOfWeek();
    return field.get(field.set(0, str, Locale.ENGLISH));
}