Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 90086 invoked from network); 24 Mar 2008 03:24:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Mar 2008 03:24:47 -0000 Received: (qmail 33516 invoked by uid 500); 24 Mar 2008 03:24:45 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 33492 invoked by uid 500); 24 Mar 2008 03:24:45 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 33483 invoked by uid 99); 24 Mar 2008 03:24:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2008 20:24:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of scarleton@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Mar 2008 03:24:06 +0000 Received: by py-out-1112.google.com with SMTP id d37so4188595pye.29 for ; Sun, 23 Mar 2008 20:24:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=EKgsdP6uhIvPwRj0e7RttmVS2jDDoeubJr/2a1Eq5aA=; b=PNkU0Qd79FEDeA6HLroMUktD67P9Bzg8qxAHHfqaEG3Wn3ag407bk2PTaU/LYot0Yuo+V/ITmqWu5JtebZajceI504B4DvXviNoA8GiG8rRZMBqVVZKiMxjDmiRU9lwY9vpqMSzDFwk8j00nE0iw/Jbz8ErWhulULlQU2GLMHSA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=siNNCzjFPsWosRdR0ogc6Gk0dc4KjZDR3g1ChLKhyKQNuIz28ET42y2UjvplOhrl0/e2qf7xhc0/9OtI4reC2+yx/3ZLnuYSVUZDjJqHuJqN/lSKQBFTcDdOal1D2u+nNw2a4sX9mQ2dnvoqp2dR2Moc4oHP34GJgkxFmK3SiE8= Received: by 10.35.102.1 with SMTP id e1mr7477504pym.61.1206329057614; Sun, 23 Mar 2008 20:24:17 -0700 (PDT) Received: by 10.35.13.3 with HTTP; Sun, 23 Mar 2008 20:24:17 -0700 (PDT) Message-ID: <8d38ca0a0803232024v51f8e409r7a0bcd0fac696b12@mail.gmail.com> Date: Sun, 23 Mar 2008 23:24:17 -0400 From: "Sam Carleton" Sender: scarleton@gmail.com To: modules-dev@httpd.apache.org Subject: Re: Converting apr_finfo_t.mtime into a Unix timestamp In-Reply-To: <47E6F4BE.7040806@joe-lewis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8d38ca0a0803231325h530fe3fgf114e3336c89ea4a@mail.gmail.com> <47E6F4BE.7040806@joe-lewis.com> X-Google-Sender-Auth: 910680192e379dd6 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Mar 23, 2008 at 8:24 PM, Joe Lewis wrote: > > I ran into this just this afternoon, and I am still looking for an > answer, but what I have found may be helpful. > > What I found is that there is an apr_time_ansi_put converts a time_t to > an apr_time_t, but the only thing that may convert the apr_time_t into > the number of seconds since Jan 1st 1970 is apr_time_sec(apr_time_t) . > > With you looking to set a header (a text string), you may want to > consider using apr_rfc822_date() to take the apr_finfo_t.mtime and turn > it directly into a string and then just set the header to that value. Joe, Thank you. I actually do want the Unix timestamp format. (Which is the Jan 1st 1970, isn't it?) In the PHP code, it looks at dates based on the unix timestamp format to determine which is the latest and then converts it to a string. Sam -- The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.