-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prettyfied everything; Added lint and pretty targets
- Loading branch information
1 parent
beb0e13
commit c7b11f4
Showing
8 changed files
with
483 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
BasedOnStyle: Google | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
#include "boost/date_time/posix_time/posix_time.hpp" | ||
#include "boost/date_time/posix_time/conversion.hpp" | ||
#include "boost/date_time/posix_time/posix_time.hpp" | ||
|
||
#include "time.h" | ||
|
||
namespace NeoPG { | ||
|
||
time_t timegm(struct tm *tm) | ||
{ | ||
time_t timegm(struct tm *tm) { | ||
using namespace boost::posix_time; | ||
|
||
/* FIXME: Not sure if this does the right thing. */ | ||
ptime pt = ptime_from_tm(*tm); | ||
return to_time_t(pt); | ||
} | ||
|
||
} | ||
} // namespace NeoPG |
Oops, something went wrong.