AdminDate
Corex\Support\Facades\AdminDate · class · Core layer
Static accessor for admin date presentation (framework boundary; see FR-008a). The same bounded-accessor pattern as {@see Config}: it resolves from the container rather than constructing, so there is still one shared instance and a test can still replace the binding. It exists because server-rendered screens format dates inside foreach loops in view code that has no constructor to inject into — threading the presenter through nine renderers to deliver one call per row would add a dependency each of them holds and uses once. Where a constructor exists, inject {@see AdminDateTime} instead. This is for view code.
Public API
Section titled “Public API”full(int|string|DateTimeImmutable|null $value, string $absent): Formatted
Section titled “full(int|string|DateTimeImmutable|null $value, string $absent): Formatted”date(int|string|DateTimeImmutable|null $value, string $absent): Formatted
Section titled “date(int|string|DateTimeImmutable|null $value, string $absent): Formatted”time(int|string|DateTimeImmutable|null $value, string $absent): Formatted
Section titled “time(int|string|DateTimeImmutable|null $value, string $absent): Formatted”relative(int|string|DateTimeImmutable|null $value, string $absent): Formatted
Section titled “relative(int|string|DateTimeImmutable|null $value, string $absent): Formatted”exact(int|string|DateTimeImmutable|null $value, string $absent): Formatted
Section titled “exact(int|string|DateTimeImmutable|null $value, string $absent): Formatted”Seconds included. Diagnostics only — never an ordinary operator view (FR-004).
clientConfig(): array
Section titled “clientConfig(): array”The payload the browser needs to produce identical output.