Documentation
¶
Overview ¶
Package format provides Go bindings for android.text.format.
Index ¶
- Constants
- func Init(env *jni.Env) error
- func Newter(vm *jni.VM) (*ter, error)
- type DateFormat
- func (m *DateFormat) Format2(arg0 string, arg1 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) Format2_1(arg0 string, arg1 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) Format2_2(arg0 string, arg1 int64) (*jni.Object, error)
- func (m *DateFormat) GetBestDateTimePattern(arg0 *jni.Object, arg1 string) (string, error)
- func (m *DateFormat) GetDateFormat(arg0 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) GetDateFormatOrder(arg0 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) GetLongDateFormat(arg0 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) GetMediumDateFormat(arg0 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) GetTimeFormat(arg0 *jni.Object) (*jni.Object, error)
- func (m *DateFormat) Is24HourFormat(arg0 *jni.Object) (bool, error)
- type DateUtils
- func (m *DateUtils) FormatDateRange4_2(arg0 *jni.Object, arg1 int64, arg2 int64, arg3 int32) (string, error)
- func (m *DateUtils) FormatDateRange5(arg0 *jni.Object, arg1 *jni.Object, arg2 int64, arg3 int64, arg4 int32) (*jni.Object, error)
- func (m *DateUtils) FormatDateRange6_1(arg0 *jni.Object, arg1 *jni.Object, arg2 int64, arg3 int64, arg4 int32, ...) (*jni.Object, error)
- func (m *DateUtils) FormatDateTime(arg0 *jni.Object, arg1 int64, arg2 int32) (string, error)
- func (m *DateUtils) FormatElapsedTime1_1(arg0 int64) (string, error)
- func (m *DateUtils) FormatElapsedTime2(arg0 *jni.Object, arg1 int64) (string, error)
- func (m *DateUtils) FormatSameDayTime(arg0 int64, arg1 int64, arg2 int32, arg3 int32) (*jni.Object, error)
- func (m *DateUtils) GetAMPMString(arg0 int32) (string, error)
- func (m *DateUtils) GetDayOfWeekString(arg0 int32, arg1 int32) (string, error)
- func (m *DateUtils) GetMonthString(arg0 int32, arg1 int32) (string, error)
- func (m *DateUtils) GetRelativeDateTimeString(arg0 *jni.Object, arg1 int64, arg2 int64, arg3 int64, arg4 int32) (*jni.Object, error)
- func (m *DateUtils) GetRelativeTimeSpanString1_2(arg0 int64) (*jni.Object, error)
- func (m *DateUtils) GetRelativeTimeSpanString2(arg0 *jni.Object, arg1 int64) (*jni.Object, error)
- func (m *DateUtils) GetRelativeTimeSpanString3_1(arg0 *jni.Object, arg1 int64, arg2 bool) (*jni.Object, error)
- func (m *DateUtils) GetRelativeTimeSpanString3_3(arg0 int64, arg1 int64, arg2 int64) (*jni.Object, error)
- func (m *DateUtils) GetRelativeTimeSpanString4_4(arg0 int64, arg1 int64, arg2 int64, arg3 int32) (*jni.Object, error)
- func (m *DateUtils) IsToday(arg0 int64) (bool, error)
- type Time
- func (m *Time) After(arg0 *jni.Object) (bool, error)
- func (m *Time) Before(arg0 *jni.Object) (bool, error)
- func (m *Time) Clear(arg0 string) error
- func (m *Time) Compare(arg0 *jni.Object, arg1 *jni.Object) (int32, error)
- func (m *Time) Format(arg0 string) (string, error)
- func (m *Time) Format2445() (string, error)
- func (m *Time) Format3339(arg0 bool) (string, error)
- func (m *Time) GetActualMaximum(arg0 int32) (int32, error)
- func (m *Time) GetCurrentTimezone() (string, error)
- func (m *Time) GetJulianDay(arg0 int64, arg1 int64) (int32, error)
- func (m *Time) GetJulianMondayFromWeeksSinceEpoch(arg0 int32) (int32, error)
- func (m *Time) GetWeekNumber() (int32, error)
- func (m *Time) GetWeeksSinceEpochFromJulianDay(arg0 int32, arg1 int32) (int32, error)
- func (m *Time) IsEpoch(arg0 *jni.Object) (bool, error)
- func (m *Time) Normalize(arg0 bool) (int64, error)
- func (m *Time) Parse(arg0 string) (bool, error)
- func (m *Time) Parse3339(arg0 string) (bool, error)
- func (m *Time) Set1(arg0 *jni.Object) error
- func (m *Time) Set1_3(arg0 int64) error
- func (m *Time) Set3_1(arg0 int32, arg1 int32, arg2 int32) error
- func (m *Time) Set6_2(arg0 int32, arg1 int32, arg2 int32, arg3 int32, arg4 int32, arg5 int32) error
- func (m *Time) SetJulianDay(arg0 int32) (int64, error)
- func (m *Time) SetToNow() error
- func (m *Time) SwitchTimezone(arg0 string) error
- func (m *Time) ToMillis(arg0 bool) (int64, error)
- func (m *Time) ToString() (string, error)
Constants ¶
const ( AbbrevMonthFormat = consts.AbbrevMonthFormat AbbrevWeekdayFormat = consts.AbbrevWeekdayFormat HourMinute24 = consts.HourMinute24 MonthDayFormat = consts.MonthDayFormat MonthFormat = consts.MonthFormat NumericMonthFormat = consts.NumericMonthFormat WeekdayFormat = consts.WeekdayFormat YearFormat = consts.YearFormat YearFormatTwoDigits = consts.YearFormatTwoDigits TimezoneUtc = consts.TimezoneUtc )
const ( DayInMillis = consts.DayInMillis HourInMillis = consts.HourInMillis MinuteInMillis = consts.MinuteInMillis SecondInMillis = consts.SecondInMillis WeekInMillis = consts.WeekInMillis YearInMillis = consts.YearInMillis )
const ( Format12hour = consts.Format12hour Format24hour = consts.Format24hour FormatAbbrevAll = consts.FormatAbbrevAll FormatAbbrevMonth = consts.FormatAbbrevMonth FormatAbbrevRelative = consts.FormatAbbrevRelative FormatAbbrevTime = consts.FormatAbbrevTime FormatAbbrevWeekday = consts.FormatAbbrevWeekday FormatCapAmpm = consts.FormatCapAmpm FormatCapMidnight = consts.FormatCapMidnight FormatCapNoon = consts.FormatCapNoon FormatCapNoonMidnight = consts.FormatCapNoonMidnight FormatNoMidnight = consts.FormatNoMidnight FormatNoMonthDay = consts.FormatNoMonthDay FormatNoNoon = consts.FormatNoNoon FormatNoNoonMidnight = consts.FormatNoNoonMidnight FormatNoYear = consts.FormatNoYear FormatNumericDate = consts.FormatNumericDate FormatShowDate = consts.FormatShowDate FormatShowTime = consts.FormatShowTime FormatShowWeekday = consts.FormatShowWeekday FormatShowYear = consts.FormatShowYear FormatUtc = consts.FormatUtc LengthLong = consts.LengthLong LengthMedium = consts.LengthMedium LengthShort = consts.LengthShort LengthShorter = consts.LengthShorter LengthShortest = consts.LengthShortest Samemonthtable = consts.Samemonthtable Sameyeartable = consts.Sameyeartable EpochJulianDay = consts.EpochJulianDay Friday = consts.Friday Hour = consts.Hour Minute = consts.Minute Monday = consts.Monday MondayBeforeJulianEpoch = consts.MondayBeforeJulianEpoch Month = consts.Month MonthDay = consts.MonthDay Saturday = consts.Saturday Second = consts.Second Sunday = consts.Sunday Thursday = consts.Thursday Tuesday = consts.Tuesday Wednesday = consts.Wednesday WeekDay = consts.WeekDay WeekNum = consts.WeekNum Year = consts.Year YearDay = consts.YearDay )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DateFormat ¶
DateFormat wraps android.text.format.DateFormat.
func NewDateFormat ¶
func NewDateFormat(vm *jni.VM) (*DateFormat, error)
NewDateFormat creates a new android.text.format.DateFormat instance.
func (*DateFormat) GetBestDateTimePattern ¶
GetBestDateTimePattern calls android.text.format.DateFormat.getBestDateTimePattern.
func (*DateFormat) GetDateFormat ¶
GetDateFormat calls android.text.format.DateFormat.getDateFormat.
func (*DateFormat) GetDateFormatOrder ¶
GetDateFormatOrder calls android.text.format.DateFormat.getDateFormatOrder.
func (*DateFormat) GetLongDateFormat ¶
GetLongDateFormat calls android.text.format.DateFormat.getLongDateFormat.
func (*DateFormat) GetMediumDateFormat ¶
GetMediumDateFormat calls android.text.format.DateFormat.getMediumDateFormat.
func (*DateFormat) GetTimeFormat ¶
GetTimeFormat calls android.text.format.DateFormat.getTimeFormat.
func (*DateFormat) Is24HourFormat ¶
func (m *DateFormat) Is24HourFormat(arg0 *jni.Object) (bool, error)
Is24HourFormat calls android.text.format.DateFormat.is24HourFormat.
type DateUtils ¶
DateUtils wraps android.text.format.DateUtils.
func NewDateUtils ¶
NewDateUtils creates a new android.text.format.DateUtils instance.
func (*DateUtils) FormatDateRange4_2 ¶
func (m *DateUtils) FormatDateRange4_2( arg0 *jni.Object, arg1 int64, arg2 int64, arg3 int32, ) (string, error)
FormatDateRange4_2 calls android.text.format.DateUtils.formatDateRange.
func (*DateUtils) FormatDateRange5 ¶
func (m *DateUtils) FormatDateRange5( arg0 *jni.Object, arg1 *jni.Object, arg2 int64, arg3 int64, arg4 int32, ) (*jni.Object, error)
FormatDateRange5 calls android.text.format.DateUtils.formatDateRange.
func (*DateUtils) FormatDateRange6_1 ¶
func (m *DateUtils) FormatDateRange6_1( arg0 *jni.Object, arg1 *jni.Object, arg2 int64, arg3 int64, arg4 int32, arg5 string, ) (*jni.Object, error)
FormatDateRange6_1 calls android.text.format.DateUtils.formatDateRange.
func (*DateUtils) FormatDateTime ¶
FormatDateTime calls android.text.format.DateUtils.formatDateTime.
func (*DateUtils) FormatElapsedTime1_1 ¶
FormatElapsedTime1_1 calls android.text.format.DateUtils.formatElapsedTime.
func (*DateUtils) FormatElapsedTime2 ¶
FormatElapsedTime2 calls android.text.format.DateUtils.formatElapsedTime.
func (*DateUtils) FormatSameDayTime ¶
func (m *DateUtils) FormatSameDayTime( arg0 int64, arg1 int64, arg2 int32, arg3 int32, ) (*jni.Object, error)
FormatSameDayTime calls android.text.format.DateUtils.formatSameDayTime.
func (*DateUtils) GetAMPMString ¶
GetAMPMString calls android.text.format.DateUtils.getAMPMString.
func (*DateUtils) GetDayOfWeekString ¶
GetDayOfWeekString calls android.text.format.DateUtils.getDayOfWeekString.
func (*DateUtils) GetMonthString ¶
GetMonthString calls android.text.format.DateUtils.getMonthString.
func (*DateUtils) GetRelativeDateTimeString ¶
func (m *DateUtils) GetRelativeDateTimeString( arg0 *jni.Object, arg1 int64, arg2 int64, arg3 int64, arg4 int32, ) (*jni.Object, error)
GetRelativeDateTimeString calls android.text.format.DateUtils.getRelativeDateTimeString.
func (*DateUtils) GetRelativeTimeSpanString1_2 ¶
GetRelativeTimeSpanString1_2 calls android.text.format.DateUtils.getRelativeTimeSpanString.
func (*DateUtils) GetRelativeTimeSpanString2 ¶
GetRelativeTimeSpanString2 calls android.text.format.DateUtils.getRelativeTimeSpanString.
func (*DateUtils) GetRelativeTimeSpanString3_1 ¶
func (m *DateUtils) GetRelativeTimeSpanString3_1( arg0 *jni.Object, arg1 int64, arg2 bool, ) (*jni.Object, error)
GetRelativeTimeSpanString3_1 calls android.text.format.DateUtils.getRelativeTimeSpanString.
func (*DateUtils) GetRelativeTimeSpanString3_3 ¶
func (m *DateUtils) GetRelativeTimeSpanString3_3( arg0 int64, arg1 int64, arg2 int64, ) (*jni.Object, error)
GetRelativeTimeSpanString3_3 calls android.text.format.DateUtils.getRelativeTimeSpanString.
type Time ¶
Time wraps android.text.format.Time.
func (*Time) Format2445 ¶
Format2445 calls android.text.format.Time.format2445.
func (*Time) Format3339 ¶
Format3339 calls android.text.format.Time.format3339.
func (*Time) GetActualMaximum ¶
GetActualMaximum calls android.text.format.Time.getActualMaximum.
func (*Time) GetCurrentTimezone ¶
GetCurrentTimezone calls android.text.format.Time.getCurrentTimezone.
func (*Time) GetJulianDay ¶
GetJulianDay calls android.text.format.Time.getJulianDay.
func (*Time) GetJulianMondayFromWeeksSinceEpoch ¶
GetJulianMondayFromWeeksSinceEpoch calls android.text.format.Time.getJulianMondayFromWeeksSinceEpoch.
func (*Time) GetWeekNumber ¶
GetWeekNumber calls android.text.format.Time.getWeekNumber.
func (*Time) GetWeeksSinceEpochFromJulianDay ¶
GetWeeksSinceEpochFromJulianDay calls android.text.format.Time.getWeeksSinceEpochFromJulianDay.
func (*Time) Set6_2 ¶
func (m *Time) Set6_2( arg0 int32, arg1 int32, arg2 int32, arg3 int32, arg4 int32, arg5 int32, ) error
Set6_2 calls android.text.format.Time.set.
func (*Time) SetJulianDay ¶
SetJulianDay calls android.text.format.Time.setJulianDay.
func (*Time) SwitchTimezone ¶
SwitchTimezone calls android.text.format.Time.switchTimezone.