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
0596bb92
Commit
0596bb92
authored
5 years ago
by
Jan Frederik Engels
Committed by
Luis Kornblueh
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup tabulators from Fortran sources.
parent
893f29af
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/mtime_t_timedelta.inc
+12
-10
12 additions, 10 deletions
src/mtime_t_timedelta.inc
with
12 additions
and
10 deletions
src/mtime_t_timedelta.inc
+
12
−
10
View file @
0596bb92
...
...
@@ -218,23 +218,25 @@
END
FUNCTION
t_timedelta_toString
FUNCTION
t_timedelta_divideInSecondsBy
(
this
,
divisor
,
referenceDateTime
)
RESULT
(
quotient
)
CLASS
(
t_timedelta
),
INTENT
(
in
),
target
::
this
TYPE
(
t_timedelta
),
INTENT
(
in
),
target
::
divisor
TYPE
(
t_datetime
),
INTENT
(
IN
),
target
::
referenceDateTime
TYPE
(
divisionquotienttimespan
),
target
::
quotient
TYPE
(
t_datetime
),
target
::
dt_tmp
type
(
c_ptr
)
::
dummy_ptr
CLASS
(
t_timedelta
),
INTENT
(
in
),
target
::
this
TYPE
(
t_timedelta
),
INTENT
(
in
),
target
::
divisor
TYPE
(
t_datetime
),
INTENT
(
IN
),
target
::
referenceDateTime
TYPE
(
divisionquotienttimespan
),
target
::
quotient
TYPE
(
t_datetime
),
target
::
dt_tmp
type
(
c_ptr
)
::
dummy_ptr
dummy_ptr
=
my_divideTimeDeltaInSeconds
(
c_loc
(
this
%
td
),
c_loc
(
divisor
%
td
),
&
&
c_loc
(
referenceDateTime
%
dt
),
c_loc
(
quotient
))
IF
(
.
NOT
.
c_associated
(
dummy_ptr
))
THEN
dt_tmp
=
referenceDateTime
+
this
dummy_ptr
=
my_dividedatetimedifferenceinseconds
(
c_loc
(
dt_tmp
%
dt
),
&
&
c_loc
(
referenceDateTime
%
dt
),
&
&
c_loc
(
divisor
%
td
),
c_loc
(
quotient
))
dummy_ptr
=
my_dividedatetimedifferenceinseconds
(
c_loc
(
dt_tmp
%
dt
),
&
&
c_loc
(
referenceDateTime
%
dt
),
&
&
c_loc
(
divisor
%
td
),
c_loc
(
quotient
))
CALL
handle_errno
(
.
not
.
c_associated
(
dummy_ptr
),
general_arithmetic_error
,
__FILE__
,
__LINE__
)
CALL
handle_errno
(
.
not
.
c_associated
(
dummy_ptr
),
general_arithmetic_error
,
&
__FILE__
,
&
__LINE__
)
END
IF
END
FUNCTION
t_timedelta_divideInSecondsBy
...
...
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