/* * Copyright 1995, 1996 Perforce Software. All rights reserved. * * This file is part of the Library RCS. See rcstest.c. */ /* * rcsdate.h - format today's date in RCS format * * Classes defined: * * RcsDate - an 18 byte string yy.mm.dd.hh.mm.ss for dates before 2000 * a 20 byte string yyyy.mm.dd.hh.mm.ss otherwise * * Public methods: * * RcsDate::Now() - format today's date in RCS format * RcsDate::Parse() - turn RCS format date into a UNIX date * RcsDate::Text() - get string format * * History: * 2-18-97 (seiwald) - translated to C++. */ const int RCS_DATE_BUF_SIZE = 20; class RcsDate { public: inline char *Text() { return buffer; } void Set( char *value ); void Set( time_t clock ); void Now(); time_t Parse(); private: char buffer[ RCS_DATE_BUF_SIZE ]; } ;
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18760 | rlranft |
Populate -o //guest/perforce_software/p4/... //guest/rlranft/p4/.... |
||
//guest/perforce_software/p4/2015-1/rcs/rcsdate.h | |||||
#1 | 15903 | Matt Attaway | Everything should be happy now between the Workshop and the depot paths | ||
//guest/perforce_software/p4/2015_1/rcs/rcsdate.h | |||||
#1 | 15901 | Matt Attaway | Clean up code to fit modern Workshop naming standards | ||
//guest/perforce_software/p4/2015.1/rcs/rcsdate.h | |||||
#1 | 12190 | Matt Attaway | Initial drop of 2015.1 p4/p4api source |