zipios  2.2.0
Zipios – a small C++ library that provides easy access to .zip files.
Classes | Namespaces | Variables
dosdatetime.cpp File Reference

Implementation of the zipios::DOSDateTime class. More...

#include "zipios/dosdatetime.hpp"
#include "zipios/zipiosexceptions.hpp"
Include dependency graph for dosdatetime.cpp:

Go to the source code of this file.

Classes

union  zipios::dosdatetime_convert_t
 Union used to convert the uint32_t to fields and vice versa. More...
 
struct  zipios::dosdatetime_convert_t::fields
 

Namespaces

 zipios
 The zipios namespace includes the Zipios library definitions.
 
 zipios::anonymous_namespace{dosdatetime.cpp}
 

Variables

int const zipios::anonymous_namespace{dosdatetime.cpp}::g_days_in_month [12]
 Number of days in a month. More...
 
int const zipios::anonymous_namespace{dosdatetime.cpp}::g_ydays [12]
 

Detailed Description

This file is the implementation of the zipios::DOSDateTime class which converts dates between Unix timestamps and DOS Date Time timestamps.

Keep in mind that the dates in a zip file use your local time, whatever that is at the time you create the file. The get/set Unix timestamp functions adjust the date to UTC as required.

See also
https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-dosdatetimetofiletime

Definition in file dosdatetime.cpp.