Function timestampFilename

  • Create timestamp intended for filenames from a date

    Parameters

    • Optionalname: string

      Name of file, {{TIMESTAMP}} will be replaced

    • date: string | number | Date = ...

      Date to use for timestamp

    Returns string

    Interpolated filename, or the raw timestamp if name was omitted