Skip to content

Commit

Permalink
Use ChronosDate in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
othercorey committed Oct 14, 2023
1 parent 79b58b7 commit 8719d74
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions docs/en/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Chronos
Chronos provides a zero-dependency collection of extensions to the ``DateTime``
object. In addition to convenience methods, Chronos provides:

* ``Date`` objects for representing calendar dates.
* ``ChronosDate`` objects for representing calendar dates.
* Immutable date and datetime objects.
* A pluggable translation system. Only English translations are included in the
library. However, ``cakephp/i18n`` can be used for full language support.
Expand Down Expand Up @@ -94,7 +94,7 @@ Date Objects

PHP only provides a single DateTime object. Representing calendar dates can be
a bit awkward with this class as it includes timezones, and time components that
don't really belong in the concept of a 'day'. Chronos provides a ``Date``
don't really belong in the concept of a 'day'. Chronos provides a ``ChronosDate``
object that allows you to represent dates. The time for date objects is always
fixed to ``00:00:00``, and the timezone is set to the server local timezone. All
formatting/difference methods operate at the day resolution::
Expand All @@ -109,10 +109,10 @@ formatting/difference methods operate at the day resolution::
// Outputs '2015-12-20'
echo $today;

Although ``Date`` uses a fixed time zone internally, you can specify which
Although ``ChronosDate`` 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:
use Cake\Chronos\DateDate;

// Takes the current date from Asia/Tokyo time zone
$today = ChronosDate::today('Asia/Tokyo');
Expand Down
8 changes: 4 additions & 4 deletions docs/fr/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Chronos
Chronos fournit une collection d'extensions sans aucune dépendance pour l'objet
``DateTime``. En plus de méthodes pratiques, Chronos fournit:

* Des objets ``Date`` pour représenter les dates du calendrier.
* Des objets ``ChronosDate`` pour représenter les dates du calendrier.
* Des objets immutables pour les dates et les datetimes.
* Un système de traduction intégrable. Seules les traductions anglaises sont
incluses dans la librairie. Cependant, ``cakephp/i18n`` peut être utilisé
Expand Down Expand Up @@ -98,7 +98,7 @@ Objets Date
PHP fournit seulement un unique objet DateTime. Représenter les dates de
calendrier peut être un peu gênant avec cette classe puisqu'elle inclut les
timezones, et les composants de time qui n'appartiennent pas vraiment
au concept d'un 'jour'. Chronos fournit un objet ``Date`` qui vous permet
au concept d'un 'jour'. Chronos fournit un objet ``ChronosDate`` qui vous permet
de représenter les dates. Les time et timezone pour ces objets sont toujours
fixés à ``00:00:00 UTC`` et toutes les méthodes de formatage/différence
fonctionnent au niveau du jour::
Expand All @@ -113,11 +113,11 @@ fonctionnent au niveau du jour::
// Affiche '2015-12-20'
echo $today;

Bien que ``Date`` utilise en interne un fuseau horaire fixe, vous pouvez
Bien que ``ChronosDate`` utilise en interne un fuseau horaire fixe, vous pouvez
spécifier le fuseau à utiliser pour l'heure courante telle que ``now()`` ou
``today()``::

use Cake\Chronos\Date:
use Cake\Chronos\ChronosDate;

// Prend l'heure courante pour le fuseau horaire de Tokyo
$today = ChronosDate::today('Asia/Tokyo');
Expand Down
4 changes: 2 additions & 2 deletions docs/ja/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Chronos
Chronos (クロノス) は、 ``DateTime`` オブジェクトへの拡張の依存関係の無いコレクションを提供します。
便利なメソッドに加えて、Chronos は以下を提供します。

* カレンダー日付のための ``Date`` オブジェクト
* カレンダー日付のための ``ChronosDate`` オブジェクト
* イミュータブルな日付と日時オブジェクト
* プラグインのような翻訳システム。ライブラリーは英語のみの翻訳を含んでいます。
しかし、全ての言語サポートのために、 ``cakephp/i18n`` を使うことができます。
Expand Down Expand Up @@ -96,7 +96,7 @@ Chronos はミュータブルオブジェクトを提供しますが、これは
PHP は単純な DateTime オブジェクトだけを提供します。このクラスのカレンダー日付の表現で、
タイムゾーンおよび、本当に「日」の概念に属していないタイムコンポーネントを含むと、
少し厄介な可能性があります。
Chronos は日時表現のための ``Date`` オブジェクトを提供します。
Chronos は日時表現のための ``ChronosDate`` オブジェクトを提供します。
これらのオブジェクトの時間とタイムゾーンは常に ``00:00:00 UTC`` に固定されており、
全ての書式/差分のメソッドは一日単位で動作します。 ::

Expand Down
4 changes: 2 additions & 2 deletions docs/pt/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Chronos
O Chronos oferece uma coleção independente de extensões para lidar com o objeto
``DateTime``. Além de métodos de conveniência, o Chronos oferece:

* Objetos ``Date`` para representar datas de calendário.
* Objetos ``ChronosDate`` para representar datas de calendário.
* Objetos *date* e *datetime* imutáveis.
* Um sistema de tradução acoplável. Apenas traduções em inglês estão incluídas
na biblioteca. Todavia, ``cakephp/i18n`` pode ser usado para suporte completo
Expand Down Expand Up @@ -97,7 +97,7 @@ Objetos Date
O PHP disponibiliza um único objeto DateTime. Representar datas de calendário
pode ser um pouco desconfortável por essa classe, uma vez que ela inclui
*timezones* e componentes de hora que realmente não se encaixam no conceito de
'dia'. O Chronos oferece um objeto ``Date`` para representar datas. A hora e a
'dia'. O Chronos oferece um objeto ``ChronosDate`` para representar datas. A hora e a
zona desse objeto é sempre fixado em ``00:00:00 UTC`` e todos os métodos de
formatação/diferença operam sob a resolução de dia::

Expand Down

0 comments on commit 8719d74

Please sign in to comment.