<?php
/* 
----------------------------------------
lastmodified.inc
 
included files:
 > lastmodified.inc : this file
 > test.php: tests out the script

Created by: Philip Olson, theprojects.org
Do whatever you want with this. Deleting this 
header is perfectly fine too.

more detailed instruction on its use:
theprojects.org/dev/lastmodified.html

list of possible timezones can be found:
theprojects.org/dev/zone.txt

use of filemtime() works fine too.

----------------------------------------
Description          :  n  : Example        
----------------------------------------
Year, Full Digits    :  Y  :  2000
Year, Abbreviated    :  y  :  00
Month, Full Text     :  F  :  February
Month, Appreviated   :  M  :  Feb
Month, Numerical     :  m  :  2
Day of week          :  l  :  Friday
Day , abbreviated    :  D  :  Fri
Day of month, Num    :  d  :  17
Day of year, Num     :  z  :  48
Hours, 24 hour       :  H  :  23
Hours, 12 hour       :  h  :  11
Minutes, Numberical  :  i  :  21
Seconds, Numberical  :  s  :  59
Seconds, Since Epoch :  U  :  924353322
AM or PM             :  A  :  AM
am or pm             :  a  :  am
----------------------------------------
  ^--from manual
*/

// example dates, uncomment to test:

// echo date( "F d Y H:i:s", getlastmod() );
// echo "anything " . date( "F d Y.", getlastmod() );
// putenv( "TZ=America/New_York");
// putenv( "TZ=America/Chicago");
// putenv( "TZ=Australia/Melbourne");  
// putenv( "TZ=Europe/Berlin");


// Of course putenv here is not required
  
putenv("TZ=America/Los_Angeles");
  echo 
"Last modified: " date"F d Y."getlastmod() );

?>