4
cdef extern from "<OpenMS/DATASTRUCTURES/DateTime.h>" namespace "OpenMS":
6
cdef cppclass DateTime:
8
DateTime() nogil except +
9
DateTime(DateTime) nogil except + # wrap-ignore
11
void setDate(String date) nogil except +
13
void setTime(String date) nogil except +
15
# void setDate(UInt month, UInt day, UInt year) nogil except +
17
# void setTime(UInt hour, UInt minute, UInt second) nogil except +
19
# void set(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second) nogil except +
21
# void get(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second) nogil except +
23
# void getDate(UInt month, UInt day, UInt year) nogil except +
25
String getDate() nogil except +
27
# void getTime(UInt hour, UInt minute, UInt second) nogil except +
29
String getTime() nogil except +
31
# Returns the current date and time
32
DateTime now() nogil except +
34
#Sets the undefined date: 00/00/0000 00:00:00
35
void clear() nogil except +
37
# @brief Returns a string representation of the date and time
38
# The format of the string will be yyyy-MM-dd hh:mm:ss
39
String get() nogil except +
41
# @brief Sets date and time
42
# The following formats are supported:
43
# - MM/dd/yyyy hh:mm:ss
44
# - dd.MM.yyyy hh:mm:ss
45
# - yyyy-MM-dd hh:mm:ss
46
# - yyyy-MM-ddThh:mm:ss (ISO 8601 format)
47
# - yyyy-MM-ddZ (ISO 8601 format)
48
# - yyyy-MM-dd+hh:mm (ISO 8601 format)
49
void set(String date) nogil except +
51
cdef extern from "<OpenMS/DATASTRUCTURES/DateTime.h>" namespace "OpenMS::DateTime":
53
DateTime now() # wrap-attach:DateTime