From owner-freebsd-current@FreeBSD.ORG Fri Feb 18 18:00:40 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1368D16A4CE; Fri, 18 Feb 2005 18:00:40 +0000 (GMT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E94C543D55; Fri, 18 Feb 2005 18:00:39 +0000 (GMT) (envelope-from mux@freebsd.org) Received: by elvis.mu.org (Postfix, from userid 1920) id DCD635C89D; Fri, 18 Feb 2005 10:00:39 -0800 (PST) Date: Fri, 18 Feb 2005 19:00:39 +0100 From: Maxime Henrion To: Tim Kientzle Message-ID: <20050218180039.GF61763@elvis.mu.org> References: <4214ED77.6000206@os.lv> <4214F2CB.8030506@alumni.rice.edu> <20050218104527.GB47973@ip.net.ua> <42162A99.7040805@kientzle.com> <42162B5C.2070300@kientzle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42162B5C.2070300@kientzle.com> User-Agent: Mutt/1.4.2.1i cc: Tim Kientzle cc: current@freebsd.org Subject: Re: Change tar to GNU X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2005 18:00:40 -0000 Tim Kientzle wrote: > Tim Kientzle wrote: > >Kaspars wrote: > > > >> > >>I have backup script build with tar and -newer options. > >>on FreeBSD 5.3 not working and I found: > >>$tar --version > >>bsdtar 1.01.011, libarchive 1.01.013 > >>Copyright (C) 2003-2004 Tim Kientzle > > --newer would be simple to add if I > could crib some date/time parsing code. > > Anyone know a good place to steal that from? ;-) Everytime I had to do something similar, I found that the standard strptime() and strftime() functions were doing the job perfectly. Not sure if that's advisable in your case though. Hope that helps, Maxime