aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2022-03-14 20:38:12 +0100
committerGitHub <noreply@github.com>2022-03-14 20:38:12 +0100
commit77751f6c9e023748a90793774e8e4b554515e8b5 (patch)
tree2175e085e4cf3a00c437f6678b3f4bdb2e851e9a /docs
parent8d79aec108bdff20264cb5449ebfe8509f652dca (diff)
parentf04faeae6c9d3864362816db9b95968e54f95dc4 (diff)
downloadPROJ-77751f6c9e023748a90793774e8e4b554515e8b5.tar.gz
PROJ-77751f6c9e023748a90793774e8e4b554515e8b5.zip
Merge pull request #3111 from direvus/1483-round-to-date
unitconvert: round to nearest date when converting to yyyymmdd.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/operations/conversions/unitconvert.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/source/operations/conversions/unitconvert.rst b/docs/source/operations/conversions/unitconvert.rst
index f1488d9a..13ca9228 100644
--- a/docs/source/operations/conversions/unitconvert.rst
+++ b/docs/source/operations/conversions/unitconvert.rst
@@ -158,6 +158,16 @@ Time units
In the table below all time units supported by PROJ are listed.
+ .. note::
+
+ When converting time units from a date-only format (`yyyymmdd`), PROJ
+ assumes a time value of 00:00 midnight. When converting time units
+ to a date-only format, PROJ rounds to the *nearest* date at 00:00
+ midnight. That is, any time values less than 12:00 noon will round to
+ 00:00 on the same day. Time values greater than or equal to 12:00 noon
+ will round to 00:00 on the following day.
+
+
+--------------+-----------------------------+
| Label | Name |
+==============+=============================+