rcsdate.h #1

  • //
  • guest/
  • perforce_software/
  • p4/
  • 2014_1/
  • rcs/
  • rcsdate.h
  • View
  • Commits
  • Open Download .zip Download (835 B)
/*
 * 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
#2 15902 Matt Attaway A second renaming that I will not obliterate as a badge of shame
#1 15901 Matt Attaway Clean up code to fit modern Workshop naming standards
//guest/perforce_software/p4/2014.1/rcs/rcsdate.h
#1 12188 Matt Attaway Move 'main' p4 into a release specific directory in prep for new releases
//guest/perforce_software/p4/rcs/rcsdate.h
#1 9129 Matt Attaway Initial commit of the 2014.1 p4/p4api source code