Skip to content

Commit

Permalink
Move xref to time formats, simplify wording
Browse files Browse the repository at this point in the history
  • Loading branch information
lsgunnlsgunn authored and jmcardon committed Jan 13, 2025
1 parent dfbbf7b commit ebb6627
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docs/builtins/Time/format-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Use `format-time` to format a `time` value using a specified `format`.
The `format-time` function is useful for converting time values to human-readable formats in Pact contracts.

The `format-time` function accepts format codes that are derived from the formatting time `strftime` function time templates.
For information about all of the time formats and specifiers, see [Time formats](/pact-5/time/time-functions#time-formats).

The following table provides a summary of the most common time formatting codes:

| Format | Purpose |
Expand All @@ -15,10 +17,6 @@ The following table provides a summary of the most common time formatting codes:
| %M | Minute of of the hour, zero-padded to two characters, "00"–"59" |
| %S | Second of the minute, zero-padded to two characters, "00"–"60" |

There are many other formatting options.
For example, you can replace the numeric representing the month of the year with the short or long name for the month.
For information about all of the formats supported, see [Time formats](/pact-5/time/time-functions#time-formats).

Note that two percentage characters (`%%`) are interpreted as a literal percentage sign (`%`), not a time formatting template.

### Basic syntax
Expand Down
4 changes: 2 additions & 2 deletions docs/builtins/Time/parse-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Use `parse-time` to construct a UTC formatted time string from an input time that uses the specified format.

The `parse-time` function accepts format codes that are derived from the formatting time `strftime` function time templates.
For information about all of the time formats and specifiers, see [Time formats](/pact-5/time/time-functions#time-formats).

The following table provides a summary of the most common time formatting codes:

| Format | Purpose |
Expand All @@ -14,8 +16,6 @@ The following table provides a summary of the most common time formatting codes:
| %M | Minute of of the hour, zero-padded to two characters, "00"–"59" |
| %S | Second of the minute, zero-padded to two characters, "00"–"60" |

For more information about time formats and specifiers, see [Time formats](/pact-5/time/time-functions#time-formats).

Note that two percentage characters (`%%`) are interpreted as a literal percentage sign (`%`), not a time formatting template.

### Basic syntax
Expand Down

0 comments on commit ebb6627

Please sign in to comment.