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 683 by douglas, 2006-03-06T16:15:07-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 +        _assert (priority < 11);
16 + }
17 +
18 + Url::Url(const cse::String &location, const std::tm &modified, Frequency frequency = always, uint8_t priority = 5) : location(location), modified(modified), frequency(frequency), priority(priority)
19 + {
20 +        _assert (priority < 11);
21 + }
22 +
23   cse::String Url::GetModified() const
24   {
25          ext::Buffer buffer(22);
26  
27 <        size_t size(::strftime(buffer.Begin(), buffer.GetSize(), "%FT%TTZ", modified));
27 >        size_t size(::strftime(buffer.Begin(), buffer.GetSize(), "%FT%TTZ", &modified));
28  
29          buffer.SetSize(size);
30  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines