diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-04 14:12:25 +0100 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-03-04 14:12:25 +0100 |
commit | 7658832143f12be180c4a5b62fdea919e8ec4d25 (patch) | |
tree | dab1ee3b11a3b27272d1cdc84054bb1a686de1b3 /lib/SimpleSAML/Utils/Time.php | |
parent | 641427741735f5905457b443d814c47eb3a31c27 (diff) | |
download | simplesamlphp-7658832143f12be180c4a5b62fdea919e8ec4d25.zip simplesamlphp-7658832143f12be180c4a5b62fdea919e8ec4d25.tar.gz simplesamlphp-7658832143f12be180c4a5b62fdea919e8ec4d25.tar.bz2 |
Complete the coverage for SimpleSAML\Utils\Time::parseDuration().
Diffstat (limited to 'lib/SimpleSAML/Utils/Time.php')
-rw-r--r-- | lib/SimpleSAML/Utils/Time.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/SimpleSAML/Utils/Time.php b/lib/SimpleSAML/Utils/Time.php index 43472e9..bbbcb8c 100644 --- a/lib/SimpleSAML/Utils/Time.php +++ b/lib/SimpleSAML/Utils/Time.php @@ -74,7 +74,8 @@ class Time /** - * Interpret a ISO8601 duration value relative to a given timestamp. + * Interpret a ISO8601 duration value relative to a given timestamp. Please note no fractions are allowed, neither + * durations specified in the formats PYYYYMMDDThhmmss nor P[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss]. * * @param string $duration The duration, as a string. * @param int $timestamp The unix timestamp we should apply the duration to. Optional, default to the current |