X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fdate.php;h=8fca991c2c9a552ed5d6a32d04e5aef87998aaf6;hp=4ed0426a032d385a154fb94690e60f5212e63941;hb=001befaf3f44ad9bc1e381e2600c22794873405a;hpb=2ba138034e8cf69a80201035e0abdb51af93083d diff --git a/functions/date.php b/functions/date.php index 4ed0426a..8fca991c 100644 --- a/functions/date.php +++ b/functions/date.php @@ -1,20 +1,37 @@ 29 Jun 1999 09:52:11 -0500 (EDT) - ** (as specified in RFC 822) -- 'Tue' is optional - ** - ** $Id$ - **/ - - // corrects a time stamp to be the local time - function getGMTSeconds($stamp, $gmt) { + +/** + * date.php + * + * Copyright (c) 1999-2001 The SquirrelMail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. + * + * Takes a date and parses it into a usable format. The form that a + * date SHOULD arrive in is: + * 29 Jun 1999 09:52:11 -0500 (EDT) + * (as specified in RFC 822) -- 'Tue' is optional + * + * $Id$ + */ + +/*****************************************************************/ +/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/ +/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/ +/*** + Base level indent should begin at left margin, as ***/ +/*** the first line of the function definition below. ***/ +/*** + All identation should consist of four space blocks ***/ +/*** + Tab characters are evil. ***/ +/*** + all comments should use "slash-star ... star-slash" ***/ +/*** style -- no pound characters, no slash-slash style ***/ +/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/ +/*** ALWAYS USE { AND } CHARACTERS!!! ***/ +/*** + Please use ' instead of ", when possible. Note " ***/ +/*** should always be used in _( ) function calls. ***/ +/*** Thank you for your help making the SM code more readable. ***/ +/*****************************************************************/ + +// corrects a time stamp to be the local time +function getGMTSeconds($stamp, $gmt) { global $invert_time; if (($gmt == 'Pacific') || ($gmt == 'PST')) $gmt = '-0800'; @@ -251,4 +268,4 @@ return ($mtime); } */ -?> \ No newline at end of file +?>