Skip to content

Booksellers & Trade Customers: Sign up for online bulk buying at trade.atlanticbooks.com for wholesale discounts

Booksellers: Create Account on our B2B Portal for wholesale discounts

Working with Dates and Times in PHP: Your Essential Resource for PHP Date and Time Operations, from Core Concepts to Advanced Techniques

by Phiquill Publishing
Sold out
₹1,463.00
Original price ₹1,463.00
Original price ₹1,463.00
₹1,463.00
Current price ₹1,463.00

Imported Edition - Ships in 18-21 Days

Free Shipping in India on orders above Rs. 500

Request Bulk Quantity Quote
+91
Book cover type: Paperback
  • ISBN13: 9798287809263
  • Binding: Paperback
  • Subject: N/A
  • Publisher: Independently Published
  • Publisher Imprint: Independently Published
  • Publication Date:
  • Pages: 182
  • Original Price: USD 14.0
  • Language: English
  • Edition: N/A
  • Item Weight: 436 grams
  • BISAC Subject(s): Internet / Web Programming

What You'll Learn

  • Understand fundamental time concepts: Grasp the distinctions between UTC, GMT, and Unix timestamps, and learn about the importance of ISO 8601 for consistent date and time representation.
  • Master PHP's Modern Date and Time API: Dive deep into the core OOP classes, including DateTimeImmutable, DateTime, DateTimeZone, DateInterval, and DatePeriod, understanding their roles and benefits.
  • Embrace Immutability for Safer Code: Discover why DateTimeImmutable is the preferred choice for reliable and predictable date and time operations, preventing accidental state changes.
  • Work Confidently with Time Zones: Learn how to correctly handle time zones, including the IANA database, UTC offsets, and the common pitfalls of Daylight Saving Time (DST) transitions.
  • Perform Date and Time Calculations: Accurately add, subtract, and compare dates and times using DateInterval and the diff() method.
  • Iterate Through Time Periods: Utilize DatePeriod to generate sequences of dates, perfect for scheduling and recurring events.
  • Format and Parse Dates Like a Pro: Master the format() method and createFromFormat() for both displaying and interpreting date and time strings in various formats.
  • Navigate Database Interactions: Understand how to store and retrieve date and time data in databases, considering different SQL types and time zone implications.
  • Implement Best Practices: Learn crucial strategies like storing dates in UTC, handling user-specific time zones, and keeping your time zone data updated.
  • Avoid Common Pitfalls: Identify and prevent frequent errors related to time zone assumptions, DST, off-by-one calculations, and ambiguous date parsing.
  • Solve Real-World Problems: Explore practical examples and case studies for building event schedulers, calculating ages, generating reports, and more.
  • Explore Third-Party Tools: Get an introduction to popular libraries like Carbon and understand how they can simplify date and time operations.
  • Test Time-Sensitive Logic: Discover effective strategies for testing your date and time code, including mocking time and handling time zone transitions.

Trusted for over 49 years

Family Owned Company

Secure Payment

All Major Credit Cards/Debit Cards/UPI & More Accepted

New & Authentic Products

India's Largest Distributor

Need Support?

Whatsapp Us