~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/gmtime.h

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
merge lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 * This is just the header file, the actual code is under a BSD license.
23
23
 */
24
24
 
25
 
#ifndef DRIZZLED_UTIL_GMTIME_H
26
 
#define DRIZZLED_UTIL_GMTIME_H
27
 
 
28
 
#include <time.h>
29
 
 
30
 
namespace drizzled
31
 
{
32
 
 
33
 
namespace util
34
 
{
35
 
 
36
 
struct tm *gmtime(const type::Time::epoch_t &timer, struct tm *tmbuf);
37
 
void gmtime(const type::Time::epoch_t &timer, type::Time &tmbuf);
38
 
struct tm *localtime(const type::Time::epoch_t &timer, struct tm *tmbuf);
39
 
void localtime(const type::Time::epoch_t &timer,  type::Time &tmbuf);
 
25
#pragma once
 
26
 
 
27
#include <ctime>
 
28
 
 
29
namespace drizzled {
 
30
namespace util {
 
31
 
 
32
tm* gmtime(const type::epoch_t&, tm*);
 
33
void gmtime(const type::epoch_t&, type::Time&);
40
34
 
41
35
} /* namespace util */
42
36
} /* namespace drizzled */
43
37
 
44
 
#endif /* DRIZZLED_UTIL_GMTIME_H */
45
38