~/talk

Beyond DateTime: a bulletproof approach to date and time

Talkat PHP fwdays'20 online · 2020-05-30..05-31· [web-platform, databases]
slides:none on file

Claim: PHP needs richer temporal types, not just DateTime, and using a Java-inspired API prevents bugs. Concrete tools: Brick\DateTime (LocalDate, LocalTime, Instant, Duration, Period), frontend options like Luxon or the Temporal proposal, and database advice to store local timestamps plus zone id instead of trusting Postgres timestamptz. Practices: use Clock injection for testability, emit ISO 8601, note Unix epoch ≈1.5 billion seconds now and atomic clocks lose ~1s per billion years. The library is immutable and noticeably reduces timezone bugs.

AI-written summary · about

  1. 0:00Start
  2. 1:01What is time, anyway?
  3. 6:12A brief history of timekeeping
  4. 22:20Domain-Driven Design is an approach to software development that centers the development on programming a domain model that has a rich understanding of the processes and rules of a domain.
  5. 39:38PAPER AIRLINES
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.