view foosdk/sdk/foobar2000/helpers/filetimetools.h @ 1:20d02a178406 default tip

*: check in everything else yay
author Paper <paper@tflc.us>
date Mon, 05 Jan 2026 02:15:46 -0500
parents
children
line wrap: on
line source

#pragma once

namespace foobar2000_io {
	t_filetimestamp filetimestamp_from_string(const char * date);
	t_filetimestamp filetimestamp_from_string_utc(const char* date);

	//! Warning: this formats according to system timezone settings, created strings should be used for display only, never for storage.
	pfc::string_formatter format_filetimestamp(t_filetimestamp p_timestamp);
	//! UTC timestamp
	pfc::string_formatter format_filetimestamp_utc(t_filetimestamp p_timestamp);
	//! Local timestamp with milliseconds
	pfc::string_formatter format_filetimestamp_ms(t_filetimestamp p_timestamp);
}