Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "misc/util"

Index

Variables

Const DARKSKY_DATE_FORMAT

DARKSKY_DATE_FORMAT: "yyyy-MM-dd'T'HH:mm:ssXX" = `yyyy-MM-dd'T'HH:mm:ssXX`

Date format string for formatting a Date into a string that DarkSky expects.

Functions

formatDateString

  • formatDateString(date: string | Date): string
  • Takes a string or a Date and formats it to what DarkSky's API is expecting.

    Parameters

    Returns string

isNumber

  • Check if value is a number, or if a string can be parsed into a number.

    Parameters

    Returns boolean

    true if it is a valid number.

isString

  • isString(value: any): boolean
  • Checks if the given value is a string.

    Parameters

    • value: any

      Value to check if is a string.

    Returns boolean

Generated using TypeDoc