wavelength 1.0.0
Loading...
Searching...
No Matches
isodate.h File Reference
#include <charconv>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <expected>
#include <filesystem>
#include <format>
#include <optional>
#include <span>
#include <string>
#include <system_error>
#include "imageerror.h"
Include dependency graph for isodate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Tools
namespace  Tools::Common
 Code that the host tools share.

Typedefs

using Tools::Common::Seconds = std::chrono::sys_seconds
 A UTC time with a resolution of one second.

Functions

void Tools::Common::writeRecordDate (std::span< std::uint8_t > bytes, std::size_t offset, Seconds time)
 Write the seven-byte date of a directory record, in UTC.
Seconds Tools::Common::readRecordDate (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read the seven-byte date of a directory record.
std::string Tools::Common::volumeDate (Seconds time)
 Format the 16 digits of a volume descriptor date, in UTC with hundredths of zero.
std::optional< Seconds > Tools::Common::readVolumeDate (std::span< const std::uint8_t > bytes, std::size_t offset)
 Read the 17-byte date of a volume descriptor.
std::expected< Seconds, Error > Tools::Common::fileModificationTime (const std::filesystem::path &path)
 Read the modification time of a file or directory.

Variables

constexpr int Tools::Common::kIsoZoneMinutes = 15
 Minutes in one step of an ISO9660 zone offset.