summaryrefslogtreecommitdiff
path: root/adodb-time.inc.php
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2020-01-15 00:13:00 +0100
committerDamien Regad <dregad@mantisbt.org>2020-01-24 23:08:41 +0100
commit32e9ef12822693b16cd59b85d38bc534592dfd49 (patch)
tree558c70dbd143de2b7a25ffb3d7fbab966c917cd1 /adodb-time.inc.php
parent907918d1ba8adad9d62530cacb8c6bfe0c098dad (diff)
downloadadodb-32e9ef12822693b16cd59b85d38bc534592dfd49.tar.gz
adodb-32e9ef12822693b16cd59b85d38bc534592dfd49.tar.bz2
adodb-32e9ef12822693b16cd59b85d38bc534592dfd49.zip
Add PHPDoc block for adodb_tz_offset()
Documenting the reason for the $ignored parameter.
Diffstat (limited to 'adodb-time.inc.php')
-rw-r--r--adodb-time.inc.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/adodb-time.inc.php b/adodb-time.inc.php
index dfb4e39f..4cccc935 100644
--- a/adodb-time.inc.php
+++ b/adodb-time.inc.php
@@ -1033,6 +1033,14 @@ global $_month_table_normal,$_month_table_leaf, $_adodb_last_date_call_failed;
);
}
+/**
+ * Compute timezone offset.
+ *
+ * @param int $gmt Time offset from GMT, in seconds
+ * @param bool $ignored Param leftover from removed PHP4-compatibility code
+ * kept to avoid altering function signature.
+ * @return string
+ */
function adodb_tz_offset($gmt,$ignored=true)
{
$zhrs = abs($gmt)/3600;