[xoops-cvslog 6362] CVS update: xoops2jp/html/class/smarty/plugins

Back to archive index

Minahito minah****@users*****
2007年 4月 25日 (水) 19:39:47 JST


Index: xoops2jp/html/class/smarty/plugins/modifier.xoops_formattimestampGMT.php
diff -u /dev/null xoops2jp/html/class/smarty/plugins/modifier.xoops_formattimestampGMT.php:1.1.2.1
--- /dev/null	Wed Apr 25 19:39:47 2007
+++ xoops2jp/html/class/smarty/plugins/modifier.xoops_formattimestampGMT.php	Wed Apr 25 19:39:47 2007
@@ -0,0 +1,29 @@
+<?php
+/**
+ *
+ * @package Legacy
+ * @version $Id: modifier.xoops_formattimestampGMT.php,v 1.1.2.1 2007/04/25 10:39:47 minahito Exp $
+ * @copyright Copyright 2005, 2006 XOOPSCube.org <http://xoopscube.org/> 
+ * @license http://www.gnu.org/licenses/gpl.txt GNU GENERAL PUBLIC LICENSE Version 2
+ *
+ */
+
+/*
+ * Smarty plugin
+ * -------------------------------------------------------------
+ * Type:     modifier
+ * Name:     xoops_formattimestampGMT
+ * Purpose:  format datestamps via strftime ( use xoops timestamp )
+ * Input:    time: input date unixtime
+ *           format: strftime format for output
+ * -------------------------------------------------------------
+ */
+function smarty_modifier_xoops_formattimestampGMT($time, $format='s')
+{
+	if($time && is_numeric($time)) {
+		return formattimestampGMT($time, $format);
+	}
+	return;
+}
+
+?>


xoops-cvslog メーリングリストの案内
Back to archive index