Skip to content

Commit aeca48f

Browse files
committed
feat(formatHumanIso8601): add formatHumanIso8601 function
1 parent aafe1c1 commit aeca48f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,3 +729,18 @@ export const formatIso8601 = format.iso8601;
729729
*
730730
* For other formats, see `@softwareventures/format-date-time`. */
731731
export const formatDateTimeIso8601 = format.iso8601;
732+
733+
/** Formats the specified {@link DateTime} as ISO 8601 extended, rounded down
734+
* to the next lower second, and with the time delimited by a space `" "`.
735+
*
736+
* This format is intended to be reasonable for display to humans. */
737+
export const formatHumanIso8601 = format.humanIso8601;
738+
739+
/** Formats the specified {@link DateTime} as ISO 8601 extended, rounded down
740+
* to the next lower second, and with the time delimited by a space `" "`.
741+
*
742+
* This format is intended to be reasonable for display to humans.
743+
*
744+
* Alias of {@link formatHumanIso8601}, useful for disambiguation from similar
745+
* functions that operate on other date/time types. */
746+
export const formatDateTimeHumanIso8601 = format.humanIso8601;

0 commit comments

Comments
 (0)