Jump to content

Is PHP supposed to show this? 'J0000005America/New_York'


DanielWhite

Recommended Posts

I was trying to get the last month with this code:

echo date('June', strtotime('-1 month'));

 

I know your supposed to use 'F' but I need some way of having the full month name to work with it. Anyone know?

 

Anyway the result of that echo brings up this:

 

J0000005America/New_York

 

What does this mean?

<?php
echo date('June', strtotime('-1 month'));
?>

 

was evaluating each letter of June so like...

J =

u = Milliseconds (added in PHP 5.2.2)  Example: 54321

n = Numeric representation of a month, without leading zeros  1 through 12

e =Timezone identifier (added in PHP 5.1.0)  Examples: UTC, GMT, Atlantic/Azores

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.