|
◆ 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
-
| this | array object to extend |
[in] | content | object of TYPE TYPE(datetime) to insert, if not provided, space is reserved but not initialized |
[in] | nelem | number of elements to add, mutually exclusive with the previous parameter, if both are not provided, a single element is added without initialization |
[in] | pos | position where to insert, if it is out of range, it is clipped, if it is not provided, the object is appended |
Definizione alla linea 1251 del file datetime_class.F90.
1252 END FUNCTION timedelta_ge 1255 elemental FUNCTION timedelta_le(this, that) RESULT(res) 1256 TYPE(timedelta), INTENT(IN) :: this, that 1259 IF (this == that) THEN 1261 ELSE IF (this < that) THEN 1267 END FUNCTION timedelta_le 1270 ELEMENTAL FUNCTION timedelta_add(this, that) RESULT(res) 1271 TYPE(timedelta), INTENT(IN) :: this, that 1272 TYPE(timedelta) :: res 1274 res%iminuti = this%iminuti + that%iminuti 1275 res%month = this%month + that%month 1277 END FUNCTION timedelta_add 1280 ELEMENTAL FUNCTION timedelta_sub(this, that) RESULT(res) 1281 TYPE(timedelta), INTENT(IN) :: this, that 1282 TYPE(timedelta) :: res 1284 res%iminuti = this%iminuti - that%iminuti
|