@@ -221,12 +221,14 @@ Support Package For PHP and Laravel
221221 * [ createFromDateString] ( #createFromDateString )
222222 * [ timestamp] ( #timestamp )
223223 * [ toJsTimer] ( #toJsTimer )
224+ * [ format] ( #format )
225+ * [ toDateTimeString] ( #toDateTimeString )
226+ * [ toDateString] ( #toDateString )
227+ * [ toTimeString] ( #toTimeString )
224228 * [ diff] ( #diff )
225229 * [ diffBetween] ( #diffBetween )
226230 * [ ago] ( #ago )
227231 * [ range] ( #range )
228- * [ format] ( #format )
229- * [ toDateTimeString] ( #toDateTimeString )
230232 * [ addSeconds] ( #addSeconds )
231233 * [ subSeconds] ( #subSeconds )
232234 * [ addMinutes] ( #addMinutes )
@@ -907,7 +909,7 @@ $time->createFromFormat('m/d/Y h:ia', '24 Jan 2025 14:00:00');
907909- Accepts one parameter [ date]
908910
909911``` php
910- $time->createFromFormat ('24 Jan 2025 14:00:00');
912+ $time->createFromDateString ('24 Jan 2025 14:00:00');
911913// 2025-01-24 14:00:00.000000
912914```
913915
@@ -929,6 +931,35 @@ $time->jsTimer('24 Jan 2025 14:00:00');
929931// Output: Jan 24, 2025 14:00:00
930932```
931933
934+ ### format
935+ - Accepts two parameter [ format, date] (none is required by default)
936+
937+ ``` php
938+ $time4->now()->format()
939+ // 2025-09-15 05:07:07
940+ ```
941+
942+ ### toDateTimeString
943+
944+ ``` php
945+ $time4->now()->toDateTimeString()
946+ // 2025-09-13 22:00:00
947+ ```
948+
949+ ### toDateString
950+
951+ ``` php
952+ $time4->now()->toDateString()
953+ // 2025-09-15
954+ ```
955+
956+ ### toTimeString
957+
958+ ``` php
959+ $time4->now()->toTimeString()
960+ // 05:09:01
961+ ```
962+
932963### diff
933964- Takes one paramater as ` mode ` . Different between the given date a current time as ` now `
934965 - Return an array if [ mode] is not found or value of ` mode set `
0 commit comments