Date#
- class pyopenms.Date#
Bases:
objectDate class for date handling
- __init__() None#
- __init__(arg: pyopenms.Date, /) None
Methods
__init__()clear()Sets the undefined date: 00/00/0000
day()Returns the day
get()Returns the date as string in iso/ansi format: yyyy-mm-dd
isNull()Returns if the date is null
isValid()Returns if the date is valid
month()Returns the month
set(date)Overloaded function.
today()Returns the current date
year()Returns the year
- clear() None#
Sets the undefined date: 00/00/0000
- day() int#
Returns the day
- get() str#
Returns the date as string in iso/ansi format: yyyy-mm-dd
- isNull() bool#
Returns if the date is null
- isValid() bool#
Returns if the date is valid
- month() int#
Returns the month
- set(date: str) None#
- set(month: int, day: int, year: int) None
Overloaded function.
set(date: str) -> None
Sets date from a string (mm/dd/yyyy, dd.mm.yyyy, or yyyy-mm-dd)
set(month: int, day: int, year: int) -> None
Sets date from three integers
- static today() pyopenms.Date#
Returns the current date
- year() int#
Returns the year