DateTime ​
- Type
- Class
- Namespace
- craft\gql\types
- Inherits
- craft\gql\types\DateTime »
GraphQL\Type\Definition\ScalarType
- Since
- 3.3.0
Class DateTime
Public Properties ​
Property | Description |
---|---|
description | string |
name | string |
description
​
- Type
- string
- Default value
'The
DateTimescalar type represents a point in time.'
name
​
- Type
- string
- Default value
'DateTime'
Public Methods ​
Method | Description |
---|---|
__construct() | |
getName() | |
getType() | Returns a singleton instance to ensure one type per schema. |
parseLiteral() | |
parseValue() | |
serialize() |
__construct()
​
Arguments ​
$config
getName()
​
Returns ​
getType()
​
Returns a singleton instance to ensure one type per schema.
Returns ​
parseLiteral()
​
Arguments ​
$valueNode
$variables
parseValue()
​
Arguments ​
$value
serialize()
​
Arguments ​
$value