[p4] is it possible to use an epoch value as a revision for command line opperations?

Steven W. Orr steveo at syslang.net
Mon Apr 16 12:43:34 PDT 2007


On Sunday, Apr 15th 2007 at 20:14 -0700, quoth David Casey:

=>For example, use integ (?)1176662685 instead of integ
=>@2007/04/15:14:44:45.
=>
=>I work with different servers in different timezones, and would like to
=>get the most recently submitted CL as of a certain snap time.
=>
=>(for example, what was the most recently submitted CL on each server as
=>of 3:00:00 GMT yesterday.)
=>
=> 
=>
=>Is this possible, or do I need to parse the serverDate offset from p4
=>info and then hope I can get my timezone/daylight savings math correct?

I'd like to suggest that you build what you want. The date(3) command will 
return the current time as an epoch via 
date '+%s'
Also, given an epoch, it's easy to convert any date to any format you like 
using date -d. See man date(1) and also info coreutils date

-- 
Time flies like the wind. Fruit flies like a banana. Stranger things have  .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net


More information about the perforce-user mailing list