libsim  Versione6.3.0

◆ arrayof_datetime_insert_array()

subroutine, private datetime_class::arrayof_datetime_insert_array ( type(arrayof_datetime this,
type(datetime), dimension(:), intent(in), optional  content,
integer, intent(in), optional  nelem,
integer, intent(in), optional  pos 
)
private

Method for inserting a number of elements of the array at a desired position.

If necessary, the array is reallocated to accomodate the new elements.

Parametri
thisarray object to extend
[in]contentobject of TYPE TYPE(datetime) to insert, if not provided, space is reserved but not initialized
[in]nelemnumber of elements to add, mutually exclusive with the previous parameter, if both are not provided, a single element is added without initialization
[in]posposition where to insert, if it is out of range, it is clipped, if it is not provided, the object is appended

Definizione alla linea 1266 del file datetime_class.F90.

1266 
1267 END FUNCTION timedelta_le
1268 
1269 
1270 ELEMENTAL FUNCTION timedelta_add(this, that) RESULT(res)
1271 TYPE(timedelta),INTENT(IN) :: this, that
1272 TYPE(timedelta) :: res
1273 
1274 res%iminuti = this%iminuti + that%iminuti
1275 res%month = this%month + that%month
1276 
1277 END FUNCTION timedelta_add
1278 
1279 
1280 ELEMENTAL FUNCTION timedelta_sub(this, that) RESULT(res)
1281 TYPE(timedelta),INTENT(IN) :: this, that
1282 TYPE(timedelta) :: res
1283 
1284 res%iminuti = this%iminuti - that%iminuti
1285 res%month = this%month - that%month
1286 
1287 END FUNCTION timedelta_sub
1288 
1289 
1290 ELEMENTAL FUNCTION timedelta_mult(this, n) RESULT(res)
1291 TYPE(timedelta),INTENT(IN) :: this
1292 INTEGER,INTENT(IN) :: n
1293 TYPE(timedelta) :: res
1294 
1295 res%iminuti = this%iminuti*n
1296 res%month = this%month*n
1297 
1298 END FUNCTION timedelta_mult
1299 

Generated with Doxygen.