Structures

The following structures are available globally.

Public Recovery Time Calculator Struct

  • This is the fundamental core of the recovery time calculator. All the action happens in the designated initializer. Once the struct is instantiated, its work is done. Most clients will use it by retrieving the “cleanTime” property, which will provide interpretations of the dates.

    This will not work with starting dates earlier than Jan 1, 1950.

    The algorithm is non-inclusive. It does not count the initial day. If the start date and end date are the same, zero days have passed.

    The granularity of the algorithm is complete days. The start time and end time are assumed to be noon.

    This uses the Gregorian calendar by default, but the calendar can be changed.

    See more

    Declaration

    Swift

    public struct LGV_CleantimeDateCalc

Cleantime Keytag Description Struct

  • This will generate a list of String-based enums, that will allow the caller to construct a “keytag chain,” with the number of keytags that would be awarded for the given cleandate.

    This works in a “layered” fashion, with the “body” as the bottom layer, and “text” over the body.

    This struct is really only a namespace for a functional and static enum implementation.

    See more

    Declaration

    Swift

    public struct LGV_CleantimeKeytagDescription