Output of the "Removing microseconds from a PHP DateTime object" PHP snippet

Environment:

  • Strangebuzz Snippet VM: 6.4.2
  • PHP: 8.3

Code execution output:

object(DateTime)#1900 (3) {
  ["date"]=>
  string(26) "2024-03-29 06:22:08.564769"
  ["timezone_type"]=>
  int(3)
  ["timezone"]=>
  string(12) "Europe/Paris"
}
object(DateTime)#1900 (3) {
  ["date"]=>
  string(26) "2024-03-29 06:22:08.000000"
  ["timezone_type"]=>
  int(3)
  ["timezone"]=>
  string(12) "Europe/Paris"
}
object(DateTime)#1902 (3) {
  ["date"]=>
  string(26) "2024-03-29 00:00:00.000000"
  ["timezone_type"]=>
  int(3)
  ["timezone"]=>
  string(12) "Europe/Paris"
}
OK