latest SDK
This commit is contained in:
25
foobar2000/helpers/filetimetools.h
Normal file
25
foobar2000/helpers/filetimetools.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
namespace foobar2000_io {
|
||||
t_filetimestamp filetimestamp_from_string(const char * date);
|
||||
|
||||
//! Warning: this formats according to system timezone settings, created strings should be used for display only, never for storage.
|
||||
class format_filetimestamp {
|
||||
public:
|
||||
format_filetimestamp(t_filetimestamp p_timestamp);
|
||||
operator const char*() const {return m_buffer;}
|
||||
const char * get_ptr() const {return m_buffer;}
|
||||
private:
|
||||
pfc::string_fixed_t<32> m_buffer;
|
||||
};
|
||||
|
||||
class format_filetimestamp_utc {
|
||||
public:
|
||||
format_filetimestamp_utc(t_filetimestamp p_timestamp);
|
||||
operator const char*() const {return m_buffer;}
|
||||
const char * get_ptr() const {return m_buffer;}
|
||||
private:
|
||||
pfc::string_fixed_t<32> m_buffer;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user