1 /* |
1 /* |
2 Copyright 2010 Mikael Berthe |
2 * Module "clock" -- Displays date and time |
3 |
3 * |
4 Module "clock" -- Displays date and time |
4 * Options: |
5 |
5 * - clock_precision_onesec: boolean (default: 0) |
6 Options: |
6 * If true, the clock will be updated every second, |
7 - clock_precision_onesec: boolean (default: 0) |
7 * if false, the clock is updated once per minute. |
8 If true, the clock will be updated every second, |
8 * - clock_strfmt: string (default: "%Y-%m-%d %H:%M") |
9 if false, the clock is updated once per minute. |
9 * strftime format string. |
10 - clock_strfmt: string (default: "%Y-%m-%d %H:%M") |
10 * |
11 strftime format string. |
11 * Copyright (C) 2010 Mikael Berthe <mikael@lilotux.net> |
12 |
12 * |
13 This module is free software: you can redistribute it and/or modify |
13 * This module is free software: you can redistribute it and/or modify |
14 it under the terms of the GNU General Public License as published by |
14 * it under the terms of the GNU General Public License as published by |
15 the Free Software Foundation, either version 2 of the License, or |
15 * the Free Software Foundation, either version 2 of the License, or |
16 (at your option) any later version. |
16 * (at your option) any later version. |
17 |
17 * |
18 This program is distributed in the hope that it will be useful, |
18 * This program is distributed in the hope that it will be useful, |
19 but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
21 GNU General Public License for more details. |
21 * GNU General Public License for more details. |
22 |
22 * |
23 You should have received a copy of the GNU General Public License |
23 * You should have received a copy of the GNU General Public License |
24 along with this program. If not, see <http://www.gnu.org/licenses/>. |
24 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
25 */ |
25 */ |
26 |
26 |
27 #include <time.h> |
27 #include <time.h> |
28 |
28 |
29 #include <mcabber/modules.h> |
29 #include <mcabber/modules.h> |
30 #include <mcabber/settings.h> |
30 #include <mcabber/settings.h> |