[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: can't use apr_time_ansi_put

From: Andreas Richter <ar_at_oszine.de>
Date: 2006-10-31 10:27:57 CET

Am Sonntag, 29. Oktober 2006 21:28 schrieb D.J. Heap:
>
> I should also mention that this snippet is incorrect and will not
> actually work, of course. It needs to look more like:
>
> apr_time_t result;
> apr_status_t status;
> time_t input = time(0);
>
> status = apr_time_ansi_put( &result, input );

You're right. It was only an example. The original code looks:

  DateTime::DateTime(const QDateTime&dt)
    : m_time(0)
  {
    apr_time_ansi_put(&m_time,dt.toTime_t());
  }

-- 
Andreas 'ar' Richter
http://www.oszine.de - http://ar.oszine.de
GPG-KeyID: 0x7BA12DD9
Fingerprint: D2E9 202B F4F0 EB16 25DE 5FF7 0CF2 3C57 7BA1 2DD9

  • application/pgp-signature attachment: stored
Received on Tue Oct 31 10:28:17 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.