Skip to content

Developer Snippets

My little Snippet library.

Recent Posts

  • Windows 10: Telemetrie, Online-Suche und Microsoft-Empfehlungen reduzieren
  • JS: Mask all except the last four digits
  • Docker, check all log files
  • Delete *.log files older then 30 days
  • Find Files by Age and copy them to another directory

Categories

  • .git
  • #!/bin/bash
  • Allgemein
  • Docker
  • HTML5
  • Javascript
  • Linux
  • Odoo
  • PHP
  • Terminal / Shell / Cli
  • Windows

Category: PHP

PHP Datumsausgabe und Formatierung


echo date("Y-m-d H:i:s", time());

Gibt in PHP die aktuelle Uhrzeit aus in Form von 2016-07-18 22:55:21 (Jahr-Monat-Tag Stunde:Minute:Sekunde)

Weitere Informationen über date()

Posted on 18. July 201618. July 2016Categories PHPTags PHP, Script
Proudly powered by WordPress