Skip to content

Commit

Permalink
Add playground time endpoint docs
Browse files Browse the repository at this point in the history
  • Loading branch information
255kb committed Dec 22, 2024
1 parent 8f20ca0 commit f03cffa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pages/playground.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,37 @@ const resources: AccordionData = [
),
count: 100
},
{
title: 'Current time <code>/time</code>',
subtitle:
'Fake time JSON data including UTC date time, Unix time, milliseconds, day of week, day of month, etc.',
content: (
<div className='px-4'>
<CodeBlock
code={`{
"utcDateTime": "2024-12-23T00:19:26.876+01:00",
"unixTimeS": 1734909566,
"unixTimeMS": 1734909566876,
"milliseconds": 876,
"seconds": 26,
"minutes": 19,
"hours": 0,
"dayOfWeekNumber": 1,
"dayOfWeekName": "Monday",
"dayOfMonth": 23,
"dayOfYear": 358,
"monthNumber": 12,
"monthName": "December",
"quarter": 4,
"year": 2024,
"weekOfYear": 52
}`}
language='json'
lineBreak
></CodeBlock>
</div>
)
},
{
title: 'Todos <code>/todos</code>',
subtitle:
Expand Down

0 comments on commit f03cffa

Please sign in to comment.