]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Time diff service 28968/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, 25 Jul 2019 09:22:21 +0000 (11:22 +0200)
commit876776500232b3ca321ea64d790a21c4d196eced
tree8b93034f5688812d7258ea9f0dc4bc10cd8fc592
parent27d2c748bc1cdf25656e3a9fefcccc577d287dd4
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>
(cherry picked from commit 3fb21de8fdebcabe7f0871266194dc53cfef4986)
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]