Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
a8f2d5be
Commit
a8f2d5be
authored
16 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Default time formato for all commands is now ISO 8601 (yyyy-mm-ddThh:mm:ss).
parent
84e4c30f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+2
-1
2 additions, 1 deletion
NEWS
src/common/parse_time.c
+5
-1
5 additions, 1 deletion
src/common/parse_time.c
with
7 additions
and
2 deletions
NEWS
+
2
−
1
View file @
a8f2d5be
...
@@ -17,7 +17,8 @@ documents those changes that are of interest to users and admins.
...
@@ -17,7 +17,8 @@ documents those changes that are of interest to users and admins.
processor count although the memory and disk space configuration can
processor count although the memory and disk space configuration can
be loaded from the compute node when it starts.
be loaded from the compute node when it starts.
-- Add configure option "--disable-iso8601" to disable SLURM use of ISO 8601
-- Add configure option "--disable-iso8601" to disable SLURM use of ISO 8601
time format at the time of SLURM build.
time format at the time of SLURM build. Default output for all commands
is now ISO 8601 (yyyy-mm-ddThh:mm:ss).
* Changes in SLURM 1.4.0-pre6
* Changes in SLURM 1.4.0-pre6
=============================
=============================
...
...
This diff is collapsed.
Click to expand it.
src/common/parse_time.c
+
5
−
1
View file @
a8f2d5be
...
@@ -35,6 +35,10 @@
...
@@ -35,6 +35,10 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
\*****************************************************************************/
\*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include
<stdio.h>
#include
<stdio.h>
#include
<time.h>
#include
<time.h>
#include
<strings.h>
#include
<strings.h>
...
@@ -448,7 +452,7 @@ slurm_make_time_str (time_t *time, char *string, int size)
...
@@ -448,7 +452,7 @@ slurm_make_time_str (time_t *time, char *string, int size)
if
(
*
time
==
(
time_t
)
0
)
{
if
(
*
time
==
(
time_t
)
0
)
{
snprintf
(
string
,
size
,
"Unknown"
);
snprintf
(
string
,
size
,
"Unknown"
);
}
else
{
}
else
{
#ifdef ISO8601
#ifdef
USE_
ISO
_
8601
/* Format YYYY-MM-DDTHH:MM:SS, ISO8601 standard format,
/* Format YYYY-MM-DDTHH:MM:SS, ISO8601 standard format,
* NOTE: This is expected to break Maui, Moab and LSF
* NOTE: This is expected to break Maui, Moab and LSF
* schedulers management of SLURM. */
* schedulers management of SLURM. */
...
...
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