Show / Hide Table of Contents

Class DrawingTime

Utility functions to handle DateTime conversions.

Inheritance
System.Object
DrawingTime
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: netDxf.Units
Assembly: CADability.dll
Syntax
public static class DrawingTime

Methods

| Improve this Doc View Source

EditingTime(Double)

Calculates the System.TimeSpan from a elapsed time represented as <Number of days>.<Fraction of day>.

Declaration
public static TimeSpan EditingTime(double elapsed)
Parameters
Type Name Description
System.Double elapsed

An elapsed time represented as <Number of days>.<Fraction of day>.

Returns
Type Description
System.TimeSpan

The System.TimeSpan equivalent to the elapsed time.

| Improve this Doc View Source

FromJulianCalendar(Double)

Calculates the System.DateTime from a date represented as <Julian date><.Fraction of day>.

Declaration
public static DateTime FromJulianCalendar(double date)
Parameters
Type Name Description
System.Double date

A date represented as <Julian date>.<Fraction of day>.

Returns
Type Description
System.DateTime

The System.DateTime equivalent to the Julian date.

| Improve this Doc View Source

ToJulianCalendar(DateTime)

Calculates a date represented as <Julian date>.<Fraction of day> from a System.DateTime instance.

Declaration
public static double ToJulianCalendar(DateTime date)
Parameters
Type Name Description
System.DateTime date

System.DateTime instance.

Returns
Type Description
System.Double

The date represented as <Julian date>.<Fraction of day> equivalent to the System.DateTime instance.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX