Skip to content

Formatter does not handle [$-F800] and [$-F400] #43

@borgar

Description

@borgar

Excel has (at least) two special locales that mean "use system default":

  • [$-F800] or [$-x-sysdate]
  • [$-F400] or [$-x-systime]

By default the formatter should probably ignore these, because it has no knowledge of what the system default formats are. At the very least, it should be using the provided locale if this modifier is set.

Settings could be added so that the caller can simply define what format to use instead of ignoring it:

numfmt("[$-F800]yyyy-mmm-dd", {
  sysdate: "dddd, mmmm dd, yyyy",
  systime: "hh:mm:ss",
  locale: "fi"
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions