Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
datetime.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019, 2024-2025 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
9
10#ifndef __UTILS_DATETIME_H__
11#define __UTILS_DATETIME_H__
12
13#include "utils/utf8_string.h"
14
15namespace zrythm::utils::datetime
16{
17
21Utf8String
23
25epoch_to_str (qint64 epoch, const Utf8String &format = u8"yyyy-MM-dd hh:mm:ss");
26
32
33}; // zrythm::utils::datetime
34
35#endif
Lightweight UTF-8 string wrapper with safe conversions.
Definition utf8_string.h:38
Utf8String get_current_as_string()
Returns the current datetime as a string.
Utf8String get_for_filename()
Get the current datetime to be used in filenames, eg, for the log file.