package
0.1.0
Repository: https://github.com/marketdataapp/sdk-go.git
Documentation: pkg.go.dev

# Functions

CombineDateRanges is a function that takes multiple DateRange objects or a slice of DateRange objects and uses the Earliest and Latest functions to generate a new DateRange object that covers the entire time range of the original objects.
DateKeyToDateRange creates a new DateRange instance from a date key.
No description provided by the author
FromDailyDateKey converts a date key into a DateRange.
FromExcelTime converts Excel time, which is the number of days since 1900-01-01, to a time.Time.
FromMonthlyDateKey converts a date key into a DateRange.
FromWeeklyDateKey takes a date key and a location as input and returns a DateRange and an error.
FromYearlyDateKey converts a date key into a DateRange.
GenerateDailyDateKeys generates a list of date keys for each day between the start and end dates.
GenerateDateKeys generates a list of date keys between the provided start and end dates based on the provided keyType.
GenerateMonthlyDateKeys generates a list of date keys for each month between the start and end dates.
GenerateWeeklyDateKeys generates a list of date keys for each week between the start and end dates.
GenerateYearlyDateKeys generates a list of date keys for each year between the start and end dates.
GetDateKeyType identifies the type of the date key.
GetDateRange is a function that takes in a timezone, dateInput, fromInput, and toInput as strings.
IsValidDateKey checks if the provided date key is valid.
No description provided by the author
NewDateRange is a function that creates a new DateRange instance.
ParseDateInput tries to parse the dateInput in various formats.
No description provided by the author
ToDayString takes an interface and returns the date in YYYY-MM-DD format and an error.
ToExcelTime converts a time.Time to Excel time, which is the number of days since 1900-01-01.
ToTime takes an interface and returns just the time.Time and an error.

# Constants

Represents day precision.
Represents hour precision.
Represents microsecond precision.
Represents millisecond precision.
Represents minute precision.
Represents month precision.
Represents nanosecond precision.
Represents second precision.
Represents year precision.

# Variables

DefaultTZ is a pointer to a time.Location that stores the default timezone.

# Structs

DateRange represents a range of dates with a start and end date.
RegexType is used for storing a regular expression and the timeUnit it parses to.
TimeFormats is a struct that holds information about a time format.
TimeInterval represents a duration object.