~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to pyOpenMS/pxds/DateTime.pxd

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2013-12-20 11:30:16 UTC
  • mfrom: (5.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131220113016-wre5g9bteeheq6he
Tags: 1.11.1-3
* remove version number from libbost development package names;
* ensure that AUTHORS is correctly shipped in all packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from String cimport *
 
2
from Types cimport *
 
3
 
 
4
cdef extern from "<OpenMS/DATASTRUCTURES/DateTime.h>" namespace "OpenMS":
 
5
 
 
6
    cdef cppclass DateTime:
 
7
 
 
8
        DateTime()   nogil except +
 
9
        DateTime(DateTime) nogil except + # wrap-ignore
 
10
 
 
11
        void setDate(String date) nogil except +
 
12
 
 
13
        void setTime(String date) nogil except +
 
14
 
 
15
        # void setDate(UInt month, UInt day, UInt year) nogil except +
 
16
 
 
17
        # void setTime(UInt hour, UInt minute, UInt second) nogil except +
 
18
 
 
19
        # void set(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second) nogil except +
 
20
 
 
21
        # void get(UInt month, UInt day, UInt year, UInt hour, UInt minute, UInt second) nogil except +
 
22
 
 
23
        # void getDate(UInt month, UInt day, UInt year) nogil except +
 
24
 
 
25
        String getDate() nogil except +
 
26
 
 
27
        # void getTime(UInt hour, UInt minute, UInt second) nogil except +
 
28
 
 
29
        String getTime() nogil except +
 
30
 
 
31
        # Returns the current date and time
 
32
        DateTime now() nogil except +
 
33
 
 
34
        #Sets the undefined date: 00/00/0000 00:00:00
 
35
        void clear() nogil except +
 
36
 
 
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 +
 
40
 
 
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 +
 
50
 
 
51
cdef extern from "<OpenMS/DATASTRUCTURES/DateTime.h>" namespace "OpenMS::DateTime":
 
52
 
 
53
    DateTime now() # wrap-attach:DateTime
 
54
 
 
55
 
 
56
 
 
57