Time Type

Overview

The time field type stores only time.

// streams/example.json
"fields": {
    "starts_at": {
        "type": "time"
    }
}

Configuration

@todo Generate config options from class::configuration

Data Structure

{
    "starts_at": "09:30:00"
}

Basic value access returns the stored value:

// Basic access
{{ $entry->starts_at }}

Decorator Usage

Date types also provide decorated values which returns a Carbon instance.

// Decorated value
{{ $entry->startsAt()->format('g:i a') }}

Methods

@todo Generate methods from @docs