ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Stamp.cpp
Revision: 36
Committed: 2004-07-22T01:19:40-07:00 (20 years, 11 months ago) by douglas
File size: 477 byte(s)
Log Message:
Atom works!

File Contents

# Content
1 // Zoe AIM Away Message RSS Feed Generator
2 //
3 // Seth King and Douglas Thrift
4 //
5 // $Id$
6
7 #include "Stamp.hpp"
8
9 Stamp::Stamp(const ext::String& when)
10 {
11 strptime(when.NullTerminate(), "%F %T", &stamp);
12
13 this->when = timegm(&stamp);
14 }
15
16 ext::String Stamp::get822() const
17 {
18 char when[30];
19
20 std::strftime(when, 30, "%a, %d %b %Y %T GMT", &stamp);
21
22 return when;
23 }
24
25 ext::String Stamp::getW3() const
26 {
27 char when[21];
28
29 std::strftime(when, 21, "%FT%TZ", &stamp);
30
31 return when;
32 }

Properties

Name Value
svn:eol-style native
svn:keywords Id