in reply to How would you convert a DateTime instance to a unix timestamp?

Do you mean a timestamp as seen on an ls ?

If so just use the get methods.

$dt->month_abbr() $dt->day() $dt->year()

along with sprintf if you want to format it the same.
  • Comment on Re: How would you convert a DateTime instance to a unix timestamp?