Skip to main content

Time

Installation

time plugin version
Using yarn
yarn add -D @graphql-codegen/time

API Reference

format

type: string default: YYYY-MM-DDTHH:mm:ssZ

Customize the Moment format of the output time.

Usage Examples

generates:
path/to/file.ts:
plugins:
- time:
format: DD.MM.YY

message

type: string default: 'Generated on'

Customize the comment message

Usage Examples

generates:
path/to/file.ts:
plugins:
- time:
message: "The file generated on: "