4 * Copyright (C) Andreas Waidler <arandes@programmers.at>
6 * Permission to use, copy, modify, and/or distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
10 * THE SOFTWARE IS PROVIDED AS IS AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 #include <libdatetime/Timestamp.hxx>
25 Timestamp::Timestamp()/*{{{*/
28 // TODO: Check return value, must not be -1.
31 // _raw = static_cast<int>(tmp);
36 Timestamp::Timestamp(int time
)/*{{{*/
42 Timestamp::~Timestamp()/*{{{*/
47 Timestamp::operator int() const/*{{{*/
53 Timestamp
& Timestamp::operator++()/*{{{*/
60 Timestamp
Timestamp::operator++(int noop
)/*{{{*/
68 Timestamp
& Timestamp::operator--()/*{{{*/
75 Timestamp
Timestamp::operator--(int noop
)/*{{{*/
83 Timestamp
& Timestamp::operator=(int rhs
)/*{{{*/
90 Timestamp
& Timestamp::operator+=(int rhs
)/*{{{*/
97 Timestamp
& Timestamp::operator-=(int rhs
)/*{{{*/
106 // Use no tabs at all; two spaces indentation; max. eighty chars per line.
107 // vim: et ts=2 sw=2 sts=2 tw=80 fdm=marker