Search Results for

    Show / Hide Table of Contents

    Class SunTimes

    Sun Times.

    Inheritance
    Object
    SunTimes
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Acoustics.Shared
    Assembly: Acoustics.Shared.dll
    Syntax
    public sealed class SunTimes

    Properties

    | Improve this Doc View Source

    Instance

    Declaration
    public static SunTimes Instance { get; }
    Property Value
    Type Description
    SunTimes

    Methods

    | Improve this Doc View Source

    CalculateSunRiseSetTimes(SunTimes.LatitudeCoords, SunTimes.LongitudeCoords, DateTime, ref DateTime, ref DateTime, ref Boolean, ref Boolean)

    Calculate sunrise and sunset times. Returns false if time zone and longitude are incompatible.

    Declaration
    public bool CalculateSunRiseSetTimes(SunTimes.LatitudeCoords lat, SunTimes.LongitudeCoords lon, DateTime date, ref DateTime riseTime, ref DateTime setTime, ref bool isSunrise, ref bool isSunset)
    Parameters
    Type Name Description
    SunTimes.LatitudeCoords lat

    Latitude coordinates.

    SunTimes.LongitudeCoords lon

    Longitude coordinates.

    DateTime date

    Date for which to calculate.

    DateTime riseTime

    Sunrise time (output).

    DateTime setTime

    Sunset time (output).

    Boolean isSunrise

    Whether or not the sun rises at that day.

    Boolean isSunset

    Whether or not the sun sets at that day.

    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    CalculateSunRiseSetTimes(Double, Double, DateTime, ref DateTime, ref DateTime, ref Boolean, ref Boolean)

    Calculate sunrise and sunset times. Returns false if time zone and longitude are incompatible.

    Declaration
    public bool CalculateSunRiseSetTimes(double lat, double lon, DateTime date, ref DateTime riseTime, ref DateTime setTime, ref bool isSunrise, ref bool isSunset)
    Parameters
    Type Name Description
    Double lat

    Latitude in decimal notation.

    Double lon

    Longitude in decimal notation.

    DateTime date

    Date for which to calculate.

    DateTime riseTime

    Sunrise time (output).

    DateTime setTime

    Sunset time (output).

    Boolean isSunrise

    Whether or not the sun rises at that day.

    Boolean isSunset

    Whether or not the sun sets at that day.

    Returns
    Type Description
    Boolean

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top