PHP Classes

File: vendor/nesbot/carbon/src/Carbon/Lang/zh.php

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/nesbot/carbon/src/Carbon/Lang/zh.php   Download  
File: vendor/nesbot/carbon/src/Carbon/Lang/zh.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Chatto PHP Websocket Chat System
Websocket based chat system using Ratchet library
Author: By
Last change:
Date: 3 years ago
Size: 2,866 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 * Authors:
 * - xuri
 * - sycuato
 * - bokideckonja
 * - Luo Ning
 * - William Yang (williamyang233)
 */
return [
   
'year' => ':count?',
   
'y' => ':count?',
   
'month' => ':count??',
   
'm' => ':count??',
   
'week' => ':count?',
   
'w' => ':count?',
   
'day' => ':count?',
   
'd' => ':count?',
   
'hour' => ':count??',
   
'h' => ':count??',
   
'minute' => ':count??',
   
'min' => ':count??',
   
'second' => ':count?',
   
's' => ':count?',
   
'ago' => ':time?',
   
'from_now' => ':time?',
   
'after' => ':time?',
   
'before' => ':time?',
   
'diff_yesterday' => '??',
   
'diff_tomorrow' => '??',
   
'formats' => [
       
'LT' => 'HH:mm',
       
'LTS' => 'HH:mm:ss',
       
'L' => 'YYYY/MM/DD',
       
'LL' => 'YYYY?M?D?',
       
'LLL' => 'YYYY?M?D? A h?mm?',
       
'LLLL' => 'YYYY?M?D?dddd A h?mm?',
    ],
   
'calendar' => [
       
'sameDay' => '[??]LT',
       
'nextDay' => '[??]LT',
       
'nextWeek' => '[?]ddddLT',
       
'lastDay' => '[??]LT',
       
'lastWeek' => '[?]ddddLT',
       
'sameElse' => 'L',
    ],
   
'ordinal' => function ($number, $period) {
        switch (
$period) {
            case
'd':
            case
'D':
            case
'DDD':
                return
$number.'?';
            case
'M':
                return
$number.'?';
            case
'w':
            case
'W':
                return
$number.'?';
            default:
                return
$number;
        }
    },
   
'meridiem' => function ($hour, $minute) {
       
$time = $hour * 100 + $minute;
        if (
$time < 600) {
            return
'??';
        }
        if (
$time < 900) {
            return
'??';
        }
        if (
$time < 1130) {
            return
'??';
        }
        if (
$time < 1230) {
            return
'??';
        }
        if (
$time < 1800) {
            return
'??';
        }

        return
'??';
    },
   
'months' => ['??', '??', '??', '??', '??', '??', '??', '??', '??', '??', '???', '???'],
   
'months_short' => ['1?', '2?', '3?', '4?', '5?', '6?', '7?', '8?', '9?', '10?', '11?', '12?'],
   
'weekdays' => ['???', '???', '???', '???', '???', '???', '???'],
   
'weekdays_short' => ['??', '??', '??', '??', '??', '??', '??'],
   
'weekdays_min' => ['?', '?', '?', '?', '?', '?', '?'],
   
'first_day_of_week' => 1,
   
'day_of_first_week_of_year' => 4,
   
'list' => '',
];