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
32690d93
Commit
32690d93
authored
6 years ago
by
Florian Prill
Browse files
Options
Downloads
Patches
Plain Diff
another routine migratedd.
parent
ae2449fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/libmtime_hl.f90
+8
-9
8 additions, 9 deletions
src/libmtime_hl.f90
with
8 additions
and
9 deletions
src/libmtime_hl.f90
+
8
−
9
View file @
32690d93
...
...
@@ -644,7 +644,6 @@ CONTAINS
FUNCTION
t_datetime_elapsedSecondsInDay
(
this
)
CLASS
(
t_datetime
),
INTENT
(
in
),
target
::
this
INTEGER
(
c_int64_t
)
::
t_datetime_elapsedSecondsInDay
INTEGER
::
errno
t_datetime_elapsedSecondsInDay
=
my_getnoofsecondselapsedindaydatetime
(
c_loc
(
this
%
dt
))
CALL
handle_errno
(
t_datetime_elapsedSecondsInDay
==
-1
,
4
*
100
+
19
,
__
FILE__
,
__
LINE__
)
...
...
@@ -661,14 +660,14 @@ CONTAINS
TYPE
(
t_timedelta
)
FUNCTION
t_timedelta_assign_string
(
td_string
)
CHARACTER
(
len
=*
),
INTENT
(
in
)
::
td_string
TYPE
(
timedelta
),
POINTER
::
td_tmp
INTEGER
::
errno
td_tmp
=>
newtimedelta
(
td_string
,
errno
)
CALL
handle_errno
(
errno
,
__
FILE__
,
__
LINE__
)
IF
(
ASSOCIATED
(
td_tmp
))
THEN
t_timedelta_assign_string
%
td
=
td_tmp
t_timedelta_assign_string
%
td
%
sign
=
td_tmp
%
sign
CALL
deallocatetimedelta
(
td_tmp
)
END
IF
type
(
c_ptr
)
::
c_pointer
c_pointer
=
my_newtimedeltafromstring
(
trim
(
adjustl
(
td_string
))//
c_null_char
)
call
handle_errno
((
.not.
c_associated
(
c_pointer
)),
5
*
100
+
1
,
__
FILE__
,
__
LINE__
)
call
c_f_pointer
(
c_pointer
,
td_tmp
)
t_timedelta_assign_string
%
td
=
td_tmp
t_timedelta_assign_string
%
td
%
sign
=
td_tmp
%
sign
call
my_deallocatetimedelta
(
c_pointer
)
END
FUNCTION
t_timedelta_assign_string
! constructor for integer milliseconds (integer)
...
...
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