How to convert the startTime output from an 'accurev show streams' comm

0 Likes

PROBLEM/ABSTRACT:
How to convert the startTime output from an 'accurev show streams' command into an actual date?

Example:
Accurev show -fxi streams output:

<stream
name="patch"
basis="ac371"
basisStreamNumber="1"
depotName="ac371"
streamNumber="9"
isDynamic="true"
type="normal"
startTime="1125419837"
has_members="true"/>
</streams>

SOLUTION:
In order to convert the time into an actual date, you can use the following perl command:

perl -e "print scalar localtime(enter number);"

C:\Demo> perl -e "print scalar localtime(1125419837);"
Tue Aug 30 12:37:17 2005


For more information contact AccuRev Support

Comment List
Related
Recommended