🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #6819

Re: DateStamp HELP!

#6819
From: John J. Szucs
Date: Mon, 19 Nov 1990 16:48
40 lines
1972 bytes
In article <1990Nov18.030410.7819@hoss.unl.edu> 252u3130@fergvax.unl.edu (Phil Dietz) writes:
>I need to change the DateStamp on a ton of files, but I do not know the
>proper command.

Under 2.0, the function:

BOOL SetFileDate(char *Name,struct DateStamp *DateStamp)

while change the date of the file/directory named <Name> to the date in
the DateStamp structure DateStamp.

For example, to set the date of the file "foo" to 1:05:03 am, Jan 4, 1978
(yes, I chose that DateStamp because it was easy to figure out in my
head :-)):

...
	static struct DateStamp DateStamp ={
		3, /* 3 days since Jan 1, 1978 */
		65, /* 65 minutes past midnight */
		150, /* 150 ticks past minute */
	};
	BOOL Success;
...
	Success=SetFileDate("foo",&DateStamp);
	if (Success) {
		printf("Succesfully set the date\n");
	} else {
		printf("Couldn't set the date\n");
	}

>Phil Dietz
-- 
============================================================================
|| John J. Szucs                || The opinions expressed are my own and  ||
|| Systems Evaluation Group     || in no way represent the opinions or    ||
|| Product Assurance Department || policies of Commodore Technology, Inc. ||
|| Commodore Technology, Inc.   || or any associated entity.              ||
============================================================================
...{rutgers|uunet|pyramid}!cbmvax!jjszucs   "Nice boys don't play
jjszucs@cbmvax.commodore.com                 rock 'n' roll"
Technical Details
Message-ID: <15950@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!cbmvax!jjszucs
References: <1990Nov18.030410.7819@hoss.unl.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!uunet!cbmvax!jjszucs
From: jjszucs@cbmvax.commodore.com (John J. Szucs)
Newsgroups: comp.sys.amiga.tech
Subject: Re: DateStamp HELP!
Message-ID: <15950@cbmvax.commodore.com>
Date: 19 Nov 90 16:48:10 GMT
References: <1990Nov18.030410.7819@hoss.unl.edu>
Reply-To: jjszucs@cbmvax.commodore.com (John J. Szucs)
Organization: Commodore, West Chester, PA
Lines: 40