MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
definitions.h
1/* miktex/PackageManager/definitions.h: -*- C++ -*-
2
3 Copyright (C) 2001-2019 Christian Schenk
4
5 This file is part of MiKTeX Package Manager.
6
7 MiKTeX Package Manager is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 MiKTeX Package Manager is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with MiKTeX Package Manager; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#pragma once
23
24#if !defined(C09DF2DF4A8A43C5B815850EFF9BEED9)
25#define C09DF2DF4A8A43C5B815850EFF9BEED9
26
27MIKTEX_PACKAGES_BEGIN_NAMESPACE;
28
30constexpr std::time_t InvalidTimeT = static_cast<std::time_t>(0);
31
35inline bool IsValidTimeT(std::time_t time)
36{
37 return time != static_cast<std::time_t>(0) && time != static_cast<std::time_t>(-1);
38}
39
40MIKTEX_PACKAGES_END_NAMESPACE;
41
42#endif
constexpr std::time_t InvalidTimeT
An invalid timestamp.
Definition definitions.h:30
bool IsValidTimeT(std::time_t time)
Definition definitions.h:35