aboutsummaryrefslogtreecommitdiff
path: root/core/time-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/time-utils.c')
-rw-r--r--core/time-utils.c23
1 files changed, 5 insertions, 18 deletions
diff --git a/core/time-utils.c b/core/time-utils.c
index 8a02f46..97ca962 100644
--- a/core/time-utils.c
+++ b/core/time-utils.c
@@ -1,21 +1,4 @@
-/* Copyright 2013-2014 IBM Corp.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- * implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include <time-utils.h>
-
+// SPDX-License-Identifier: Apache-2.0
/*
* Converts an OPAL formatted datetime into a struct tm. We ignore microseconds
* as Linux doesn't use them anyway.
@@ -25,8 +8,12 @@
* | hour | minute | secs | reserved |
* +------------------------------------+
* | microseconds |
+ *
+ * Copyright 2013-2014 IBM Corp.
*/
+#include <time-utils.h>
+
void datetime_to_tm(uint32_t y_m_d, uint64_t h_m_s_m, struct tm *tm)
{
uint32_t x;