Method | Description | |
---|---|---|
DateToString ( System date, Resolution resolution ) : System.String |
Converts a Date to a string suitable for indexing.
|
|
Round ( System date, Resolution resolution ) : System.DateTime |
Limit a date's resolution. For example, the date
|
|
Round ( long time, Resolution resolution ) : long |
Limit a date's resolution. For example, the date
|
|
StringToDate ( System dateString ) : System.DateTime |
Converts a string produced by expected format
|
|
StringToTime ( System dateString ) : long |
Converts a string produced by expected format
|
|
TimeToString ( long time, Resolution resolution ) : System.String |
Converts a millisecond time to a string suitable for indexing.
|
Method | Description | |
---|---|---|
DateTools ( ) : System |
public static DateToString ( System date, Resolution resolution ) : System.String | ||
date | System | the date to be converted /// |
resolution | Resolution | the desired resolution, see /// {@link #Round(Date, DateTools.Resolution)} /// |
return | System.String |
public static Round ( System date, Resolution resolution ) : System.DateTime | ||
date | System | The date. |
resolution | Resolution | The desired resolution of the date to be returned |
return | System.DateTime |
public static Round ( long time, Resolution resolution ) : long | ||
time | long | The time in milliseconds (not ticks). |
resolution | Resolution | The desired resolution of the date to be returned /// |
return | long |
public static StringToDate ( System dateString ) : System.DateTime | ||
dateString | System | the date string to be converted /// |
return | System.DateTime |
public static StringToTime ( System dateString ) : long | ||
dateString | System | the date string to be converted /// |
return | long |
public static TimeToString ( long time, Resolution resolution ) : System.String | ||
time | long | the date expressed as milliseconds since January 1, 1970, 00:00:00 GMT /// |
resolution | Resolution | the desired resolution, see /// {@link #Round(long, DateTools.Resolution)} /// |
return | System.String |