C Library Functions  - ordinal_seconds (3)

NAME

ordinal_seconds(3f) - [M_time:ORDINAL_DAY] seconds since beginning of year (LICENSE:MIT)

CONTENTS

Synopsis
Description
Example
Author
License

SYNOPSIS

function ordinal_seconds()

    integer :: ordinal_seconds

DESCRIPTION

Return number of seconds since beginning of current year.

Before using this routine consider the consequences if the application is running at the moment a new year begins.

EXAMPLE

sample program

    program demo_ordinal_seconds
    use M_time, only : ordinal_seconds
    implicit none
    character(len=1) :: paws
    integer          :: ios
    integer          :: istart, iend
    istart=ordinal_seconds()
    write(*,’(a)’,advance=’no’)’now pause. Enter return to continue ...’
    read(*,’(a)’,iostat=ios) paws
    iend=ordinal_seconds()
    write(*,*)’that took ’,iend-istart,’seconds’
    write(*,*)istart,iend
    end program demo_ordinal_seconds

AUTHOR

John S. Urban, 2015

LICENSE

    MIT


Nemo Release 3.1 ordinal_seconds (3) July 22, 2023
Generated by manServer 1.08 from 05b1d371-5bf7-4cc0-a257-9e54cf4f7200 using man macros.