upgrade to laravel 7 and set branch to v2

This commit is contained in:
2020-12-25 11:22:15 +00:00
parent 516105c492
commit 0ddd298350
4638 changed files with 132501 additions and 190226 deletions
+6 -5
View File
@@ -10,10 +10,10 @@ from cakephpsphinx.config.all import *
#
# The full version, including alpha/beta/rc tags.
release = '1.x'
release = '2.x'
# The search index version.
search_version = 'chronos-1'
search_version = 'chronos-2'
# The marketing display name for the book.
version_name = ''
@@ -23,7 +23,8 @@ project = 'Chronos'
# Other versions that display in the version picker menu.
version_list = [
{'name': '1.x', 'number': '/chronos/1.x', 'title': '1.x', 'current': True},
{'name': '1.x', 'number': '/chronos/1', 'title': '1.x'},
{'name': '2.x', 'number': '/chronos/2', 'title': '2.x', 'current': True},
]
# Languages available.
@@ -31,10 +32,10 @@ languages = ['en', 'fr', 'ja', 'pt']
# The GitHub branch name for this version of the docs
# for edit links to point at.
branch = 'master'
branch = '2.x'
# Current version being built
version = '1.x'
version = '2.x'
# Language in use for this directory.
language = 'en'
+11 -3
View File
@@ -16,7 +16,7 @@ To install Chronos, you should use ``composer``. From your
application's ROOT directory (where composer.json file is located) run the
following::
php composer.phar require cakephp/chronos "@stable"
php composer.phar require "cakephp/chronos:^2.0"
Overview
--------
@@ -111,6 +111,14 @@ methods operate at the day resolution::
// Outputs '2015-12-20'
echo $today;
Although ``Date`` uses a fixed time zone internally, you can specify which
time zone to use for current time such as ``now()`` or ``today()``::
use Cake\Chronos\Date:
// Takes the current date from Asia/Tokyo time zone
$today = Date::today('Asia/Tokyo');
Modifier Methods
----------------
@@ -265,19 +273,19 @@ Extracting Date Components
Getting parts of a date object can be done by directly accessing properties::
$time = new Chronos('2015-12-31 23:59:58');
$time = new Chronos('2015-12-31 23:59:58.123');
$time->year; // 2015
$time->month; // 12
$time->day; // 31
$time->hour // 23
$time->minute // 59
$time->second // 58
$time->micro // 123
Other properties that can be accessed are:
- timezone
- timezoneName
- micro
- dayOfWeek
- dayOfMonth
- dayOfYear