ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Url.cpp
(Generate patch)

Comparing GoogleTron/Url.cpp (file contents):
Revision 676 by douglas, 2006-03-04T05:15:00-08:00 vs.
Revision 677 by douglas, 2006-03-04T07:11:04-08:00

# Line 8 | Line 8
8  
9   #include "Url.hpp"
10  
11 + Url::Url(const cse::String &location, const std::time_t &modified, Frequency frequency, uint8_t priority) : location(location), frequency(frequency), priority(priority)
12 + {
13 +        ::gmtime_r(&modified, &this->modified);
14 + }
15 +
16   cse::String Url::GetModified() const
17   {
18          ext::Buffer buffer(22);
19  
20 <        size_t size(::strftime(buffer.Begin(), buffer.GetSize(), "%FT%TTZ", modified));
20 >        size_t size(::strftime(buffer.Begin(), buffer.GetSize(), "%FT%TTZ", &modified));
21  
22          buffer.SetSize(size);
23  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines