Class NumberDateFormat
This NumberFormat parses System.Int64 into date strings and vice-versa. It
uses the given dateFormat
and System.Globalization.CultureInfo to parse and format dates, but before, it
converts System.Int64 to System.DateTime objects or vice-versa.
Note that the System.Int64 value the dates are parsed into and out of represent the number of milliseconds since January 1, 1970 0:00:00, also known as the "epoch".
Inherited Members
Assembly: Lucene.Net.QueryParser.dll
Syntax
[Serializable]
public class NumberDateFormat : NumberFormat
Constructors
Name | Description |
---|---|
NumberDateFormat(DateFormat, DateFormat, CultureInfo) | Constructs a NumberDateFormat object using the given |
NumberDateFormat(String, CultureInfo) | Constructs a NumberDateFormat object using the given |
Fields
Name | Description |
---|---|
EPOCH |
Properties
Name | Description |
---|---|
TimeZone |
Methods
Name | Description |
---|---|
Format(Double) | |
Format(Int64) | |
Format(Object) | |
GetDateFormat() | Returns the .NET date format that will be used to Format the date. Note that parsing the date uses System.DateTime.ParseExact(System.String,System.String,System.IFormatProvider). |
GetDateFormat(DateFormat, DateFormat, CultureInfo) | |
Parse(String) | |
SetDateFormat(String) |