Class DateTimeTools
Inheritance
System.Object
DateTimeTools
Namespace: Telerik.Maui.Controls.Compatibility.Common.Android
Assembly: Telerik.Maui.Controls.Compatibility.dll
Syntax
public static class DateTimeTools : Object
Fields
Timestamp
Declaration
public static long Timestamp
Field Value
System.Int64
|
Methods
ToDateTime(Calendar, Nullable<DateTimeKind>)
Declaration
public static DateTime ToDateTime(this Calendar calendar, Nullable<DateTimeKind> kind)
Parameters
Java.Util.Calendar
calendar
|
System.Nullable<System.DateTimeKind>
kind
|
Returns
System.DateTime
|
ToDateTime(Int64)
Declaration
public static DateTime ToDateTime(this long timestamp)
Parameters
System.Int64
timestamp
|
Returns
System.DateTime
|
ToDateTimeList(IList<Long>)
Declaration
public static List<Nullable<DateTime>> ToDateTimeList(this IList<Long> list)
Parameters
System.Collections.Generic.IList<Java.Lang.Long>
list
|
Returns
System.Collections.Generic.List<System.Nullable<System.DateTime>>
|
ToJavaCalendar(DateTime)
Declaration
public static Calendar ToJavaCalendar(this DateTime date)
Parameters
System.DateTime
date
|
Returns
Java.Util.Calendar
|
ToJavaGlobalTimestamp(DateTime)
Declaration
public static long ToJavaGlobalTimestamp(this DateTime date)
Parameters
System.DateTime
date
|
Returns
System.Int64
|
ToJavaTimestamp(DateTime)
Declaration
public static long ToJavaTimestamp(this DateTime date)
Parameters
System.DateTime
date
|
Returns
System.Int64
|
ToLocalDateTime(Long)
Declaration
public static Nullable<DateTime> ToLocalDateTime(this Long timestamp)
Parameters
Java.Lang.Long
timestamp
|
Returns
System.Nullable<System.DateTime>
|
ToLocalDateTime(Int64)
Declaration
public static DateTime ToLocalDateTime(this long timestamp)
Parameters
System.Int64
timestamp
|
Returns
System.DateTime
|
ToLocalDotNetDateTime(Long)
Declaration
public static Nullable<DateTime> ToLocalDotNetDateTime(this Long timestamp)
Parameters
Java.Lang.Long
timestamp
|
Returns
System.Nullable<System.DateTime>
|
ToLocalDotNetDateTime(Date)
Declaration
public static DateTime ToLocalDotNetDateTime(this Date javaDate)
Parameters
Java.Util.Date
javaDate
|
Returns
System.DateTime
|
ToLocalDotNetDateTime(Int64)
Declaration
public static DateTime ToLocalDotNetDateTime(this long timestamp)
Parameters
System.Int64
timestamp
|
Returns
System.DateTime
|