version=pmwiki-2.1.beta12 ordered=1 urlencoded=1 agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8) Gecko/20051111 Firefox/1.5 author= host=202.32.188.9 name=PmWikiJa.ChangeTimeFormat rev=1 targets=Profiles.Pm,Category.Layout text=!!! Question%0a!!! 質問%0a%0aHow can I change the format of dates and times?\\%0aHow do I change the time zone for PmWiki's dates and times?%0a%0aどのように日時書式を変えればよいですか?\\%0aどのようにPmWikiの日時タイムゾーンを変えれば良いですか?\\%0a%0a!!! Answer 1: Changing PmWiki's time output format%0a!!! 回答 1: PmWikiの出力時間帯を変更する%0a%0aPmWiki uses the $TimeFmt variable and PHP's ''strftime'' function to format its dates and times. The default setting of $TimeFmt is @@[="%25B %25d, %25Y, at %25I:%25M %25p"=]@@, which displays the name of the month (%25B), day (%25d), year (%25Y), hour on a 12-hour clock (%25I), minutes (%25M), and am/pm setting (%25p).%0aThe [[http://www.php.net/strftime |documentation for strftime]] describes the various %25-parameters that are available.%0a%0aPmWikiは日時を整形する為に、$Timefmt変数と、PHPの''strftime''関数を使います。%0a$TimeFmtのデフォルト設定は @@[="%25B %25d, %25Y, at %25I:%25M %25p"=]@@で、%0a月名(%25B)、日(%25d)、年(%25Y)、12時間制の時(%25I)、分(%25M)と午前/午後(%25p)です。%0a[[http://www.php.net/strftime |strftimeのドキュメント]]は利用できる様々な%25変数を記述しています。%0a%0aThus, to change the display of dates and times to a "mm-dd-yyyy hh:mm" format, set $TimeFmt in ''local/config.php'' as%0a%0aしたがって、日時表示を"mm-dd-yyyy hh:mm"に整形するには%0a''local/config.php''に$TimeFmtを、このように設定します%0a%0a $TimeFmt=[='%25m-%25d-%25Y %25H:%25M'=]; # mm-dd-yy hh:mm%0a $TimeFmt=[="%25d.%25m.%25G, at %25R %25Z=]"; # german (ISO year) format%0a%0a!!! Answer 2: Setting the time zone%0a%0aTo change your timezone, you generally need to know the value of the "TZ" or "timezone" environment variable. These are defined for different localities around the world. For example, in the U.S. the Eastern time zone setting is generally [="EST5EDT"=], which gives the name of the timezone ("EST"), the number of hours offset from GMT (5), and a string to be used if the zone honors daylight savings time ("EDT").%0a%0aThus, to change PmWiki's timezone to be U.S. Eastern Time, add the following line to ''local/config.php''.%0a%0a [=putenv("TZ=EST5EDT");=]%0a%0aSome common timezone values (feel free to add to this list):%0a [=%0a EST5EDT U.S. Eastern Standard/Daylight Time%0a CST6CDT U.S. Central Standard/Daylight Time%0a MST7MDT U.S. Mountain Standard/Daylight Time%0a MST7 U.S. Mountain Standard Time (Arizona)%0a PST8PDT U.S. Pacific Standard/Daylight Time%0a AKST9AKDT U.S. Alaska Standard/Daylight Time%0a%0a UTC0 Universal Coordinated Time%0a GMT0 Greenwich Mean Time%0a CET-1CEST Central Europe Time/Central Europe Summer Time%0a NZS-12NZD New Zealand Standard/Daylight Time%0a =]%0a%0a!!! See Also%0a%0ahttp://www.timeanddate.com/library/abbreviations/timezones/%0a%0a!!! Contributor%0a* Reinhard Hofmann%0a* [[~Pm]]%0a%0a'+Categories:+' [[!Layout]] time=1134124521