Class DateUtils
Inheritance
System.Object
    DateUtils
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Apache.NMS.Util
Assembly: Apache.NMS.dll
Syntax
public class DateUtilsFields
| Improve this Doc View SourceepochDiff
The difference between the Windows epoch and the Java epoch in milliseconds.
Declaration
public static readonly long epochDiffField Value
| Type | Description | 
|---|---|
| System.Int64 | 
javaEpoch
The start of the Java epoch
Declaration
public static readonly DateTime javaEpochField Value
| Type | Description | 
|---|---|
| System.DateTime | 
windowsEpoch
The start of the Windows epoch
Declaration
public static readonly DateTime windowsEpochField Value
| Type | Description | 
|---|---|
| System.DateTime | 
Methods
| Improve this Doc View SourceToDateTime(Int64)
Declaration
public static DateTime ToDateTime(long javaTime)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | javaTime | 
Returns
| Type | Description | 
|---|---|
| System.DateTime | 
ToDateTimeUtc(Int64)
Declaration
public static DateTime ToDateTimeUtc(long javaTime)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int64 | javaTime | 
Returns
| Type | Description | 
|---|---|
| System.DateTime | 
ToJavaTime(DateTime)
Declaration
public static long ToJavaTime(DateTime dateTime)Parameters
| Type | Name | Description | 
|---|---|---|
| System.DateTime | dateTime | 
Returns
| Type | Description | 
|---|---|
| System.Int64 | 
ToJavaTimeUtc(DateTime)
Declaration
public static long ToJavaTimeUtc(DateTime dateTime)Parameters
| Type | Name | Description | 
|---|---|---|
| System.DateTime | dateTime | 
Returns
| Type | Description | 
|---|---|
| System.Int64 |