ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Stamp.cpp
(Generate patch)

Comparing trunk/Stamp.cpp (file contents):
Revision 31 by douglas, 2004-07-20T00:11:56-07:00 vs.
Revision 36 by douglas, 2004-07-22T01:19:40-07:00

# Line 13 | Line 13 | Stamp::Stamp(const ext::String& when)
13          this->when = timegm(&stamp);
14   }
15  
16 < Stamp::operator ext::String() const
16 > ext::String Stamp::get822() const
17   {
18          char when[30];
19  
# Line 21 | Line 21 | Stamp::operator ext::String() const
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 + }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines