Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libmtime
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
icon-libraries
libmtime
Commits
c15dfc85
Commit
c15dfc85
authored
10 months ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Clean up mtime_iso8601.rl
parent
678ce140
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!26
Clean up mtime_iso8601.rl
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mtime_iso8601.rl
+12
-6
12 additions, 6 deletions
src/mtime_iso8601.rl
with
12 additions
and
6 deletions
src/mtime_iso8601.rl
+
12
−
6
View file @
c15dfc85
# Copyright (c) 2013-2024 MPI-M, Luis Kornblueh, Rahul Sinha and DWD, Florian Prill. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
// Copyright (c) 2013-2024 MPI-M, Luis Kornblueh, Rahul Sinha and DWD, Florian Prill. All rights reserved.
//
// SPDX-License-Identifier: BSD-3-Clause
//
/*! \cond PRIVATE */
/**
* @brief ISO 8601_2004 complaint Time.
...
...
@@ -36,14 +37,19 @@
#define YEAR_UPPER_BOUND 2147483647L
#define YEAR_LOWER_BOUND -2147483648L
// #define SECOND_UPPER_BOUND 86399
// Allowed year range = 2147483647 TO -2147483648
bool RAISE_YEAR_OUT_OF_BOUND_EXCEPTION = false;
// Allowed second max = 86399
bool RAISE_SECOND_UPPER_LIMIT_EXCEPTION = false;
// Ignore unused static variables generated by Ragel
#if defined(__NVCOMPILER)
# pragma diag_suppress declared_but_not_referenced
#elif defined(__GNUC__)
# pragma GCC diagnostic ignored "-Wunused-const-variable"
#endif
%%{
machine date_machine;
write data;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment