[]Struct jni_android_sys::android::text::format::DateUtils

#[repr(transparent)]
pub struct DateUtils(_);

public class DateUtils

Required feature: "android-text-format-DateUtils"

Methods

impl DateUtils

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, DateUtils>, Local<'env, Throwable>>
[src]

pub fn getDayOfWeekString<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

Deprecated

getDayOfWeekString

Required features: "java-lang-String"

pub fn getAMPMString<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

Deprecated

getAMPMString

Required features: "java-lang-String"

pub fn getMonthString<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

Deprecated

getMonthString

Required features: "java-lang-String"

pub fn getRelativeTimeSpanString_long<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeTimeSpanString

Required features: "java-lang-CharSequence"

pub fn getRelativeTimeSpanString_long_long_long<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: i64,
    arg2: i64
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeTimeSpanString

Required features: "java-lang-CharSequence"

pub fn getRelativeTimeSpanString_long_long_long_int<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: i64,
    arg2: i64,
    arg3: i32
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeTimeSpanString

Required features: "java-lang-CharSequence"

pub fn getRelativeDateTimeString<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i64,
    arg2: i64,
    arg3: i64,
    arg4: i32
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeDateTimeString

Required features: "android-content-Context", "java-lang-CharSequence"

pub fn formatElapsedTime_long<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

formatElapsedTime

Required features: "java-lang-String"

pub fn formatElapsedTime_StringBuilder_long<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env StringBuilder>>,
    arg1: i64
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

formatElapsedTime

Required features: "java-lang-String", "java-lang-StringBuilder"

pub fn formatSameDayTime<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: i64,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

formatSameDayTime

Required features: "java-lang-CharSequence"

pub fn isToday<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn formatDateRange_Context_long_long_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i64,
    arg2: i64,
    arg3: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

formatDateRange

Required features: "android-content-Context", "java-lang-String"

pub fn formatDateRange_Context_Formatter_long_long_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Formatter>>,
    arg2: i64,
    arg3: i64,
    arg4: i32
) -> Result<Option<Local<'env, Formatter>>, Local<'env, Throwable>>
[src]

formatDateRange

Required features: "android-content-Context", "java-util-Formatter"

pub fn formatDateRange_Context_Formatter_long_long_int_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Formatter>>,
    arg2: i64,
    arg3: i64,
    arg4: i32,
    arg5: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Formatter>>, Local<'env, Throwable>>
[src]

formatDateRange

Required features: "android-content-Context", "java-lang-String", "java-util-Formatter"

pub fn formatDateTime<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i64,
    arg2: i32
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

formatDateTime

Required features: "android-content-Context", "java-lang-String"

pub fn getRelativeTimeSpanString_Context_long_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i64,
    arg2: bool
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeTimeSpanString

Required features: "android-content-Context", "java-lang-CharSequence"

pub fn getRelativeTimeSpanString_Context_long<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i64
) -> Result<Option<Local<'env, CharSequence>>, Local<'env, Throwable>>
[src]

getRelativeTimeSpanString

Required features: "android-content-Context", "java-lang-CharSequence"

pub const ABBREV_MONTH_FORMAT: &'static str[src]

Deprecated

public static final ABBREV_MONTH_FORMAT

pub const ABBREV_WEEKDAY_FORMAT: &'static str[src]

public static final ABBREV_WEEKDAY_FORMAT

pub const DAY_IN_MILLIS: i64[src]

public static final DAY_IN_MILLIS

pub const FORMAT_12HOUR: i32[src]

Deprecated

public static final FORMAT_12HOUR

pub const FORMAT_24HOUR: i32[src]

Deprecated

public static final FORMAT_24HOUR

pub const FORMAT_ABBREV_ALL: i32[src]

public static final FORMAT_ABBREV_ALL

pub const FORMAT_ABBREV_MONTH: i32[src]

public static final FORMAT_ABBREV_MONTH

pub const FORMAT_ABBREV_RELATIVE: i32[src]

public static final FORMAT_ABBREV_RELATIVE

pub const FORMAT_ABBREV_TIME: i32[src]

public static final FORMAT_ABBREV_TIME

pub const FORMAT_ABBREV_WEEKDAY: i32[src]

public static final FORMAT_ABBREV_WEEKDAY

pub const FORMAT_CAP_AMPM: i32[src]

Deprecated

public static final FORMAT_CAP_AMPM

pub const FORMAT_CAP_MIDNIGHT: i32[src]

Deprecated

public static final FORMAT_CAP_MIDNIGHT

pub const FORMAT_CAP_NOON: i32[src]

Deprecated

public static final FORMAT_CAP_NOON

pub const FORMAT_CAP_NOON_MIDNIGHT: i32[src]

Deprecated

public static final FORMAT_CAP_NOON_MIDNIGHT

pub const FORMAT_NO_MIDNIGHT: i32[src]

public static final FORMAT_NO_MIDNIGHT

pub const FORMAT_NO_MONTH_DAY: i32[src]

public static final FORMAT_NO_MONTH_DAY

pub const FORMAT_NO_NOON: i32[src]

public static final FORMAT_NO_NOON

pub const FORMAT_NO_NOON_MIDNIGHT: i32[src]

Deprecated

public static final FORMAT_NO_NOON_MIDNIGHT

pub const FORMAT_NO_YEAR: i32[src]

public static final FORMAT_NO_YEAR

pub const FORMAT_NUMERIC_DATE: i32[src]

public static final FORMAT_NUMERIC_DATE

pub const FORMAT_SHOW_DATE: i32[src]

public static final FORMAT_SHOW_DATE

pub const FORMAT_SHOW_TIME: i32[src]

public static final FORMAT_SHOW_TIME

pub const FORMAT_SHOW_WEEKDAY: i32[src]

public static final FORMAT_SHOW_WEEKDAY

pub const FORMAT_SHOW_YEAR: i32[src]

public static final FORMAT_SHOW_YEAR

pub const FORMAT_UTC: i32[src]

Deprecated

public static final FORMAT_UTC

pub const HOUR_IN_MILLIS: i64[src]

public static final HOUR_IN_MILLIS

pub const HOUR_MINUTE_24: &'static str[src]

Deprecated

public static final HOUR_MINUTE_24

pub const LENGTH_LONG: i32[src]

Deprecated

public static final LENGTH_LONG

pub const LENGTH_MEDIUM: i32[src]

Deprecated

public static final LENGTH_MEDIUM

pub const LENGTH_SHORT: i32[src]

Deprecated

public static final LENGTH_SHORT

pub const LENGTH_SHORTER: i32[src]

Deprecated

public static final LENGTH_SHORTER

pub const LENGTH_SHORTEST: i32[src]

Deprecated

public static final LENGTH_SHORTEST

pub const MINUTE_IN_MILLIS: i64[src]

public static final MINUTE_IN_MILLIS

pub const MONTH_DAY_FORMAT: &'static str[src]

public static final MONTH_DAY_FORMAT

pub const MONTH_FORMAT: &'static str[src]

public static final MONTH_FORMAT

pub const NUMERIC_MONTH_FORMAT: &'static str[src]

public static final NUMERIC_MONTH_FORMAT

pub const SECOND_IN_MILLIS: i64[src]

public static final SECOND_IN_MILLIS

pub const WEEKDAY_FORMAT: &'static str[src]

public static final WEEKDAY_FORMAT

pub const WEEK_IN_MILLIS: i64[src]

public static final WEEK_IN_MILLIS

pub const YEAR_FORMAT: &'static str[src]

public static final YEAR_FORMAT

pub const YEAR_FORMAT_TWO_DIGITS: &'static str[src]

public static final YEAR_FORMAT_TWO_DIGITS

pub const YEAR_IN_MILLIS: i64[src]

public static final YEAR_IN_MILLIS

pub fn sameMonthTable<'env>(env: &'env Env) -> Option<Local<'env, IntArray>>[src]

Deprecated

get public static final sameMonthTable

pub fn sameYearTable<'env>(env: &'env Env) -> Option<Local<'env, IntArray>>[src]

Deprecated

get public static final sameYearTable

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for DateUtils

impl AsValidJObjectAndEnv for DateUtils

impl Deref for DateUtils

type Target = Object

The resulting type after dereferencing.

impl JniType for DateUtils

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.