Unix Timestamp to Date in JavaScript, PHP, Python and MySQL
Convert Unix timestamps to dates in JavaScript, PHP, Python, MySQL and PostgreSQL: seconds vs ms, time zones, DST and the 2038 limit.
Read article →Blog · 8 guides
Short, practical articles about the formats and edge cases behind the tools on this site, with runnable examples in JavaScript, PHP and Python.
Convert Unix timestamps to dates in JavaScript, PHP, Python, MySQL and PostgreSQL: seconds vs ms, time zones, DST and the 2038 limit.
Read article →SHA-256 hashes a message; HMAC-SHA256 adds a secret key. When to use each, why neither suits passwords, and how to verify both.
Read guide →Every JSON.parse SyntaxError and its fix: unexpected token <, single quotes, trailing commas, comments, end of input, BOM and NaN.
Read guide →How json_encode picks an object or array, what each flag changes, where floats and depth go wrong, and why it returns false silently.
Read guide →Base64 and percent-encoding solve different problems. How each works byte by byte, which Base64 variant to pick, and when to use each.
Read guide →The five cron fields, every special character, and 30 ready-to-copy schedules in plain English, plus time zone pitfalls and how each cron platform differs.
Read guide →How a JWT is built from header, payload and signature, how to decode one in JavaScript, PHP or Python, and mistakes that make JWTs unsafe.
Read guide →Convert JSON to CSV in plain JavaScript with correct RFC 4180 escaping. Flatten nested objects, write the file in Node.js, or trigger a browser download.
Read guide →