Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8776845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:09:06+00:00 2026-06-13T19:09:06+00:00

For the latest file in a stream, how can I get the timestamp associated

  • 0

For the latest file in a stream, how can I get the timestamp associated with the version? I tried accurev hist <elem>, but that returns the entire history and now I have to parse through it.

Edit:

When I tried accurev hist -t highest <fileName>

the result is:

element: /./a/b/c/Ver_2.xlsm
eid: 461
transaction 1335; promote; 2012/10/30 16:50:01 ; user: scrubbed
  version 1/3 (46/1)

So extracting just the timestamp i.e. 2012/10/30 16:50:01 from this entire result seemed more work. So, my first question in comments was if we can just get the timestamp back i.e. 2012/10/30 16:50:01

After trying the new command accurev hist -fx -t highest -p mydepot Ver_2.xlsm, the return value is an xml value :

......
    <transaction
        id="1335"
        type="promote"
        time="1351630201"
        user="scrubbed">
........

This time, the timestamp is returned as epoch value. I guess I can find a way to convert this to timestamp value, but if it is possible to have a return value of 2012/10/30 16:50:01, that would work best.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T19:09:07+00:00Added an answer on June 13, 2026 at 7:09 pm

    Try tossing in the “-t highest” flag for your hist command, that will retrieve only the latest transaction information for the file in that stream…

    This is for latest version in a specific stream:
    accurev hist -fx -t highest -s stream_name .\path_to_element

    This is for the latest version in the depot:
    accurev hist -fx -t highest -p depot_name .\path_to_element

    After your edit, I now understand that you JUST want the timestamp value. There’s no way to return a single attribute. I’d suggest you use the -fx option and parse for the correct attribute. To convert epoch time to a readable value, use this:

    c:>perl -e “print scalar localtime(1334932836);”
    Fri Apr 20 10:40:36 2012

    Hope this helps.
    ~James

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Below, I am trying to find the latest version of a file that could
I want to get the latest file that's in the repository, and overwrite what
I need to create a batch file that will take the latest of my
I downloaded the latest source of mod_wsgi from https://code.google.com/p/modwsgi/source/checkout , but I can’t compile
So, I've been trying to set up my system so that I can get
What is the easiest way to get the latest file modification date (latest of
I have created the file latest.php in the public_html so that when I go
How to get the path of the recent or latest file based on creation
I have install the latest Xcode but this keep occurring. How could I solve
i have a process that downloads a file from a webbrower. it has the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.