formatTimestamp関数の書式についてです。
Bulletinの一般設定に「日付・日時の書式」という項目があります。その説明書きは「文字の書式はPHPのdate関数・XOOPSのformatTimestamp関数を参照してください。」なのですが、date関数はマニュアルがあるのに、formatTimestamp関数はマニュアルが無いと言われたので、PHPソースが読めない方でもカスタマイズできるよう、説明を書きたいと思います。
formatTimestampの書式は以下の文字列が予約されています。
s
global.phpで定義されている_SHORTDATESTRINGの値になります。date関数を用いた場合のY-n-jと同じです。"s"を設定すると、例えば2006-7-3のようになります。
m
global.phpで定義されている_MEDIUMDATESTRINGの値になります。date関数を用いた場合のY-n-j G:iと同じです。
l
global.phpで定義されている_DATESTRINGの値になります。date関数を用いた場合のY-n-j G:i:sと同じです。設定欄に"l"を設定すると2006-7-3 5:40:20というふうになります。newsモジュールではこの形を用いているかと思います。
mysql
date関数を用いた場合のY-m-d H:i:sと同じです。
rss
date関数を用いた場合のY-m-d H:i:sと同じです。
その他
formatTimestamp関数の予約文字列以外を使うと、date関数と同じ結果が得られます。例えば、Y年m月d日 H時i分とすることもでき、結果は2006年07月09日 21時47分となります。
- formatTimestamp、さあどうする? (2006年02月20日 23:20)
- formatTimestamp関数の書式 (2006年07月10日 05:49)
- Bulletin2とAltsysを一緒に使おう(推奨) (2006年07月04日 14:27)
- ニュース記事と画像に適度な余白を作る (2006年06月24日 14:57)
- アバターを表示するブロック (2006年06月20日 02:15)
- Bulletinのカテゴリアイコンの管理方法(推奨) (2006年06月15日 17:07)
- 「アカウント情報」ページのタイトルをユーザ名にしたい (2006年06月13日 16:39)
- イメージマネージャとmyAlbumPを連結する (2006年06月08日 23:33)
- カスタムブロックを使ったキャッシュクリーナ (2006年06月08日 23:32)
- アカウント情報のEmailのスパム対策 (2006年06月08日 23:30)
- 荒らしサイトからのアクセスを禁ずる (2006年06月08日 23:28)
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=403 x 3
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=404 x 1
- http://www.gusagi.com/modules/xhld/ x 2
- http://www.itt-web.net/xeblog/index.html x 3
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=405 x 3
- http://www.itt-web.net/xeblog/index/caldate.2006-07-11.html x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=406 x 5
- http://xoops.jp/ x 1
- http://nunrg.s57.xrea.com/members/modules/xhld0/index.php?id=26 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=408 x 3
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=407 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=410 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=412 x 3
- http://www.itt-web.net/ x 10
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=414 x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=415 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=416 x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=418 x 4
- http://www.hodajuku.org/modules/weblinks/singlelink.php?lid=23 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=419 x 4
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=421 x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=422 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=428 x 1
- http://riverstone.s81.xrea.com/xoops4u/html/modules/weblinks/singlelink.php?lid=15 x 2
- http://www.gusagi.com/modules/xhld/index.php?id=8 x 1
- http://www.itt-web.net/xeblog/index/action_xeblog_details.1/blog_id.381.html x 1
- http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=ja_en&trurl=http%3a%2... x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=315 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=460 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=463 x 1
- http://www.kitunet.com/modules/xhld2/index.php?id=2 x 5
- http://www.itt-web.net/xcring7/index/id.8.html x 6
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=347 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=495 x 1
- http://www.kitunet.com/modules/xhld2/ x 1
- http://www.itt-web.net/xeblog/index/action_xeblog_details.1/blog_id.247.html x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=335 x 1
- http://www.wholinks2me.com/links/xoops.jp x 2
- http://www.city.setagaya.tokyo.jp/topics/shospo/sesyoup/index.html x 1
- http://blog.goo.ne.jp/staffblog/e/d3ed4c7f037fff0b7ede39e2ee80cb60 x 1
- http://xoops.sourceforge.jp/wiki/xoops2/index.php?ETC%2FScreenShot x 1
- http://www.setagaya-kosodate.net/i/r.php?http://suin.jp/modules/bulletin/index-page-art... x 3
- http://libweb.city.setagaya.tokyo.jp/clis/opacinfoi?TYPE=1&LIB=03 x 1
- http://malaika.s31.xrea.com/modules/xhld0/index.php?id=49 x 1
- http://www.suin.jp/ x 3
- http://www.5r-2.com/modules/weblinks/singlelink.php?lid=45 x 4
- http://www.itt-web.net/modules/xeblog/?caldate=0&start=0&cat_id=15 x 2
- http://web225.grats.jp/tag/%E9%96%A2%E6%95%B0 x 1
- http://web225.grats.jp/tag/%E6%9B%B8%E5%BC%8F x 1
- http://riverstone.s81.xrea.com/xoops4u/html/modules/weblinks/singlelink.php?lid=4 x 1
- http://cad476.co.jp/modules/headline4/ x 1
- http://www.itt-web.net/modules/bwiki/index.php?B-wiki%20Top x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=306 x 1
- http://takeiteasy.squares.net/modules/weblinks/singlelink.php?lid=4 x 4
- http://www.itt-web.net/modules/xeblog/?caldate=0&start=20&cat_id=7 x 1
- http://www.itt-web.net/xeblog/index/action_xeblog_details.1/blog_id.338.html x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=539 x 1
- http://www.itt-web.net/headline/index.html x 2
- http://www.itt-web.net/modules/xeblog/?action_xeblog_archives=1 x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=552 x 2
- http://www.wdpo.com/ x 1
- http://www.itt-web.net/modules/bwiki/index.php?Xanhte%A5%E1%A5%E2 x 2
- http://hello.oceannet.jp/modules/news/ x 1
- http://www.itt-web.net/modules/xeblog/?action_xeblog_details=1&blog_id=151 x 1
- http://www.itt-web.net/calendar/index/cid.0/smode.Monthly/caldate.2009-10-23.html x 1
- http://www.itt-web.net/modules/bwiki/index.php?exActionForm%A4%CE%C1%AB%B0%DC x 1
- http://www.trunkgates.com/modules/d3forum/index.php?forum_id=15 x 18
- http://xoops.wbmstr.info/modules/weblinks/singlelink.php?lid=16 x 1
- http://ask.jp/web.asp?o=0&qsrc=3&q=%E6%9B%B8%E5%BC%8F%E9%96%A2%E6%95%B0&btn... x 1
