#pragma once
#include <ctime>
#include <string>
#include <chrono>
#include "augs/filesystem/file_time_type.h"

namespace augs {
	struct date_time {
		// GEN INTROSPECTOR struct augs::timestamp
		std::time_t t;
		// END GEN INTROSPECTOR

		date_time();
		date_time(const std::time_t& t) : t(t) {}
		date_time(const std::chrono::system_clock::time_point&);
#if !PLATFORM_WINDOWS
		date_time(const file_time_type&);
#endif

		operator std::time_t() const {
			return t;
		}

		std::string get_stamp() const;
		std::string get_readable() const;

		unsigned long long seconds_ago() const;
		std::string how_long_ago() const;
		std::string how_long_ago_tell_seconds() const;

	private:
		std::string how_long_ago(bool) const;
	};
}
#pragma once
#include <ctime>
#include <string>
#include <chrono>
#include "augs/filesystem/file_time_type.h"

namespace augs {
	struct date_time {
		// GEN INTROSPECTOR struct augs::timestamp
		std::time_t t;
		// END GEN INTROSPECTOR

		date_time();
		date_time(const std::time_t& t) : t(t) {}
		date_time(const std::chrono::system_clock::time_point&);
		date_time(const file_time_type&);

		operator std::time_t() const {
			return t;
		}

		std::string get_stamp() const;
		std::string get_readable() const;

		unsigned long long seconds_ago() const;
		std::string how_long_ago() const;
		std::string how_long_ago_tell_seconds() const;

	private:
		std::string how_long_ago(bool) const;
	};
}
Build error fix for Windows
Build error fix for Windows
