1<?php 2// (c) Copyright by authors of the Tiki Wiki CMS Groupware Project 3// 4// All Rights Reserved. See copyright.txt for details and a complete list of authors. 5// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. 6// $Id$ 7 8class Tiki_Profile_DateConverter 9{ 10 function convert($value) 11 { 12 if (is_int($value)) { 13 return $value; 14 } 15 16 $time = strtotime($value); 17 if ($time !== false) { 18 return $time; 19 } 20 } 21} 22