Newer
Older
pukiwikiplugin / datestr.inc.php
@Sosuke Moriguchi Sosuke Moriguchi on 21 Dec 2016 383 bytes Initial commit
<?php
// $Id: datestr.inc.php,v 0.1 2016/10/03
// Copyright (C)
//   2016 Kwansei Gakuin University comp-staff
// License; GPL v2
// Date string plugin

function plugin_datestr_inline() {
	$args	= func_get_args();

	if (func_num_args() == 2 && $args[1] == "") {
		if ($args[0] == 'Y' || $args[0] == 'm' || $args[0] == 'd') {
			return get_date($args[0]);
		}
	}

	return FALSE;
}
?>