How to convert svn repository change date to epoch timestamp?

Trond Endrestøl trond.endrestol at ximalas.info
Sun Nov 3 16:33:44 UTC 2019


On Sun, 3 Nov 2019 17:28+0100, Trond Endrestøl wrote:

> date -juf "%FT%TZ" `svnlite info --no-newline --show-item last-changed-date /usr/src | sed 's/\.[0-9]*Z$/Z/'` "+%s"

Even simpler:

date -juf "%FT%T" `svnlite info --no-newline --show-item last-changed-date /usr/src | sed 's/\.[0-9]*Z$//'` "+%s"

-- 
Trond.


More information about the freebsd-questions mailing list