# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Enums | Methods | Inherited Methods

# RelativeDateTimeFormatter.RelativeDateTimeUnit

`public static final enum RelativeDateTimeFormatter.RelativeDateTimeUnit`
`` `extends Enum<RelativeDateTimeFormatter.RelativeDateTimeUnit>` ``

java.lang.Object
↳ | java.lang.Enum<android.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit>
| ↳ | android.icu.text.RelativeDateTimeFormatter.RelativeDateTimeUnit

Represents the unit for formatting a relative date. e.g "in 5 days" or "next year"

## Summary

### Enum values
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `DAY` Specifies that relative unit is day, e.g. "yesterday", "in 5 days".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `FRIDAY` Specifies that relative unit is Friday, e.g. "last Friday", "this Friday", "next Friday", "in 5 Fridays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `HOUR` Specifies that relative unit is hour, e.g. "1 hour ago", "in 5 hours".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `MINUTE` Specifies that relative unit is minute, e.g. "1 minute ago", "in 5 minutes".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `MONDAY` Specifies that relative unit is Monday, e.g. "last Monday", "this Monday", "next Monday", "in 5 Mondays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `MONTH` Specifies that relative unit is month, e.g. "last month", "in 5 months".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `QUARTER` Specifies that relative unit is quarter, e.g. "last quarter", "in 5 quarters".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `SATURDAY` Specifies that relative unit is Saturday, e.g. "last Saturday", "this Saturday", "next Saturday", "in 5 Saturdays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `SECOND` Specifies that relative unit is second, e.g. "1 second ago", "in 5 seconds".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `SUNDAY` Specifies that relative unit is Sunday, e.g. "last Sunday", "this Sunday", "next Sunday", "in 5 Sundays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `THURSDAY` Specifies that relative unit is Thursday, e.g. "last Thursday", "this Thursday", "next Thursday", "in 5 Thursdays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `TUESDAY` Specifies that relative unit is Tuesday, e.g. "last Tuesday", "this Tuesday", "next Tuesday", "in 5 Tuesdays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `WEDNESDAY` Specifies that relative unit is Wednesday, e.g. "last Wednesday", "this Wednesday", "next Wednesday", "in 5 Wednesdays".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `WEEK` Specifies that relative unit is week, e.g. "last week", "in 5 weeks".
`RelativeDateTimeFormatter.RelativeDateTimeUnit` | `YEAR` Specifies that relative unit is year, e.g. "last year", "in 5 years".

### Public methods
`static RelativeDateTimeFormatter.RelativeDateTimeUnit` | `valueOf(String name)`
`static final RelativeDateTimeUnit[]` | `values()`

### Inherited methods
From class `java.lang.Enum`
`final Object` | `clone()` Throws CloneNotSupportedException.
`final int` | `compareTo(RelativeDateTimeFormatter.RelativeDateTimeUnit o)` Compares this enum with the specified object for order.
`final boolean` | `equals(Object other)` Returns true if the specified object is equal to this enum constant.
`final void` | `finalize()` enum classes cannot have finalize methods.
`final Class<RelativeDateTimeFormatter.RelativeDateTimeUnit>` | `getDeclaringClass()` Returns the Class object corresponding to this enum constant's enum type.
`final int` | `hashCode()` Returns a hash code for this enum constant.
`final String` | `name()` Returns the name of this enum constant, exactly as declared in its enum declaration.
`final int` | `ordinal()` Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
`String` | `toString()` Returns the name of this enum constant, as contained in the declaration.
`static <T extends Enum<T>> T` | `valueOf(Class<T> enumType, String name)` Returns the enum constant of the specified enum type with the specified name.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `java.lang.Comparable`
`abstract int` | `compareTo(RelativeDateTimeFormatter.RelativeDateTimeUnit o)` Compares this object with the specified object for order.

## Enum values

### DAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit DAY

Specifies that relative unit is day, e.g. "yesterday", "in 5 days".

### FRIDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit FRIDAY

Specifies that relative unit is Friday, e.g. "last Friday", "this Friday", "next Friday", "in 5 Fridays".

### HOUR

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit HOUR

Specifies that relative unit is hour, e.g. "1 hour ago", "in 5 hours".

### MINUTE

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MINUTE

Specifies that relative unit is minute, e.g. "1 minute ago", "in 5 minutes".

### MONDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MONDAY

Specifies that relative unit is Monday, e.g. "last Monday", "this Monday", "next Monday", "in 5 Mondays".

### MONTH

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit MONTH

Specifies that relative unit is month, e.g. "last month", "in 5 months".

### QUARTER

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit QUARTER

Specifies that relative unit is quarter, e.g. "last quarter", "in 5 quarters".

### SATURDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SATURDAY

Specifies that relative unit is Saturday, e.g. "last Saturday", "this Saturday", "next Saturday", "in 5 Saturdays".

### SECOND

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SECOND

Specifies that relative unit is second, e.g. "1 second ago", "in 5 seconds".

### SUNDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit SUNDAY

Specifies that relative unit is Sunday, e.g. "last Sunday", "this Sunday", "next Sunday", "in 5 Sundays".

### THURSDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit THURSDAY

Specifies that relative unit is Thursday, e.g. "last Thursday", "this Thursday", "next Thursday", "in 5 Thursdays".

### TUESDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit TUESDAY

Specifies that relative unit is Tuesday, e.g. "last Tuesday", "this Tuesday", "next Tuesday", "in 5 Tuesdays".

### WEDNESDAY

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit WEDNESDAY

Specifies that relative unit is Wednesday, e.g. "last Wednesday", "this Wednesday", "next Wednesday", "in 5 Wednesdays".

### WEEK

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit WEEK

Specifies that relative unit is week, e.g. "last week", "in 5 weeks".

### YEAR

    public static final RelativeDateTimeFormatter.RelativeDateTimeUnit YEAR

Specifies that relative unit is year, e.g. "last year", "in 5 years".

## Public methods

### valueOf

    public static RelativeDateTimeFormatter.RelativeDateTimeUnit valueOf (String name)

Parameters
`name` | `String`

Returns
`RelativeDateTimeFormatter.RelativeDateTimeUnit` |

### values

    public static final RelativeDateTimeUnit[] values ()

Returns
`RelativeDateTimeUnit[]` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*