| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\Framework\Support\Facades\DateTime; |
| 4 |
|
| 5 |
use DateTimeInterface; |
| 6 |
use Give\Framework\Support\Facades\Facade; |
| 7 |
|
| 8 |
/** |
| 9 |
* @since 4.0.0 added withStartOfDay, withEndOfDay, immutableOrClone |
| 10 |
* @since 3.20. added getDateTimestamp |
| 11 |
* @since 2.19.6 |
| 12 |
* |
| 13 |
* @method static DateTimeInterface toDateTime(string $date) |
| 14 |
* @method static DateTimeInterface getCurrentDateTime() |
| 15 |
* @method static string getFormattedDateTime(DateTimeInterface $dateTime) |
| 16 |
* @method static string getCurrentFormattedDateForDatabase() |
| 17 |
* @method static DateTimeInterface withoutMicroseconds(DateTimeInterface $dateTime) |
| 18 |
* @method static DateTimeInterface withStartOfDay(DateTimeInterface $dateTime) |
| 19 |
* @method static DateTimeInterface withEndOfDay(DateTimeInterface $dateTime) |
| 20 |
* @method static DateTimeInterface immutableOrClone(DateTimeInterface $dateTime) |
| 21 |
* @method static int getDateTimestamp(string $date, string $timezone = '') |
| 22 |
* @method static string getFormattedDateTimeUsingTimeZoneAndFormatSettings(DateTimeInterface $dateTime) |
| 23 |
*/ |
| 24 |
class Temporal extends Facade |
| 25 |
{ |
| 26 |
protected function getFacadeAccessor(): string |
| 27 |
{ |
| 28 |
return TemporalFacade::class; |
| 29 |
} |
| 30 |
} |
| 31 |
|