Skip to content

datetime-fortran v0.3.1

Choose a tag to compare

@milancurcic milancurcic released this 31 Mar 23:37

This release includes few updates:

  1. strftime is now a datetime-bound method, similar to Python's datetime.strftime(). The user does not need to be bothered anymore with generating a tm_struct from datetime and calling C strftime. The interface to C strftime is still available and has been renamed to c_strftime in the API to work around naming conflicts.

  2. strptime is now a function that takes a datetime instance and format string as arguments. The user does not need to be bothered anymore with generating a tm_struct from datetime and calling C strptime. The interface to C strptime is still available and has been renamed to c_strptime in the API to work around naming conflicts.

  3. Bug fix in datetime%addDays. This bug caused the library to call daysInMonth with a bad month argument when one would subtract from one month into previous month.