]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Time diff service 27277/head
authorStephan Müller <smueller@suse.com>
Wed, 27 Mar 2019 12:27:51 +0000 (13:27 +0100)
committerStephan Müller <smueller@suse.com>
Thu, 4 Jul 2019 14:19:26 +0000 (16:19 +0200)
commit3fb21de8fdebcabe7f0871266194dc53cfef4986
tree54bfc1c3119fb5a24e39e3b06acc9a60f2e76764
parentb20e9c8db813c8b9dee76c525936cb0b0697b25a
mgr/dashboard: Time diff service

The time diff service can easily calculate the difference between two
dates and print it out in a human readable duration format. It also can
calculate a end or start date based on a date and a duration string.

Fixes: https://tracker.ceph.com/issues/36722
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/time-diff.service.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/services/time-diff.service.ts [new file with mode: 0644]