Why does DateTime add a T separator to the timestamp?

datetime, perl

Solution

The `T` is just a standard (ISO 8601) way to delimit the time. To use a different format, consider using `strftime` or `format_cldr`.

For example, to have a space instead, use `DateTime->now->format_cldr("YYYY-MM-dd hh:mm:ss")`.

Problem

My code: ``` print DateTime->now; ``` Response: 2012-08-17T20:16:37 Why is there a T? Is there an option I have forgotten?

Original source

Related problems