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

Shawn Hladky p4shawn at gmail.com
Mon Apr 16 08:52:40 PDT 2007


I looked into this a bit, and parsing the offset from the server may be
nearly impossible if the server's timezone adjust for daylight savings.  The
offset (like -0600) is for today, and doesn't take into account whether the
server is in daylight time today or not.  The time-zone name from p4 info
appears to be OS-specific, and it would be a nightmare trying to map all the
names to the real timezone.  I was using the .Net framework, which doesn't
even have an API for converting between timezones (other than local), and
there's a bug in Windows around historical timezones after the DST change
this year.

However, to answer the specific question "what was the most recently
submitted CL on each server as of 3:00:00 GMT yesterday,"  you could just
use the offset, if it's OK to be an hour off twice a year.

It makes me wonder, do people setup their server to be in GMT timezone (or
not follow DST) just to avoid these headaches?



On 4/15/07, David Casey <dacasey at adobe.com> wrote:
>
> 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?
>
>
>
>
>
> Thanks,
>
> -Dave
>
>
>
>
>
>
>
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>


More information about the perforce-user mailing list