DateTime

Type
Class
Namespace
craft\gql\types
Inherits
craft\gql\types\DateTime » GraphQL\Type\Definition\ScalarType
Since
3.3.0

Class DateTime

View source (opens new window)

# Public Properties

# description

Type
string (opens new window)
Default value
'TheDateTimescalar type represents a point in time.'

View source (opens new window)

# name

Type
string (opens new window)
Default value
'DateTime'

View source (opens new window)

# Public Methods

Method Description
__construct()
getName()
getType() Returns a singleton instance to ensure one type per schema.
parseLiteral()
parseValue()
serialize()

# __construct()

View source (opens new window)

Arguments

  • $config

# getName()

View source (opens new window)

Returns

string (opens new window)

# getType()

Returns a singleton instance to ensure one type per schema.

View source (opens new window)

Returns

craft\gql\types\DateTime

# parseLiteral()

View source (opens new window)

Arguments

  • $valueNode
  • $variables

# parseValue()

View source (opens new window)

Arguments

  • $value

# serialize()

View source (opens new window)

Arguments

  • $value