~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/programming/getdate.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
getdate           Scilab Group           Scilab Function            getdate
2
 
NAME
3
 
   getdate - get date and time information
4
 
  
5
 
CALLING SEQUENCE
6
 
 dt=getdate()
7
 
 x=getdate('s')
8
 
 dt=getdate(x)
9
 
PARAMETERS
10
 
 dt   : an integer vector with 8 entries (see below)
11
 
      
12
 
 x    : an integer containing a date coded in second from 1 Jan 1970 
13
 
      
14
 
DESCRIPTION
15
 
 dt =getdate() returns the current date in format given below:
16
 
    
17
 
   dt(1) : The year  as a number (with the century) between 0000 and 9999.
18
 
         
19
 
   dt(2) : The month of the year as a number between 01 and 12.
20
 
         
21
 
   dt(3) : The ISO 8601  week  number  as  a   number between 01 and 53.
22
 
         
23
 
   dt(4) : The Julian day of the year  as a number between 001 and 366.
24
 
         
25
 
   dt(5) : Specifies the weekday as a decimal number [1,7], with 1
26
 
         representing Sunday. 
27
 
         
28
 
   dt(6) : The day of the month as a number between 01 and 31.
29
 
         
30
 
   dt(7) : The hour of the day  as a number between 00 and 23.
31
 
         
32
 
   dt(8) : The minute  as a number between 00 and 59.
33
 
         
34
 
   dt(9) : The second is output as a number between 00 and 61.
35
 
         
36
 
 x =getdate('s'), returns a scalar with the number of seconds since Jan
37
 
     1, 1970, 00:00 UTC (unix time convention)
38
 
    
39
 
 dt =getdate(x) ,format the date given by x (number of seconds since Jan
40
 
    1, 1970, 00:00 UTC) in format given above:
41
 
    
42
 
EXAMPLES
43
 
 w=getdate()
44
 
 mprintf("Year:%d,Month:%d,Day:%d",w(1),w(2),w(6));
45
 
 
46
 
 x=getdate('s')
47
 
 getdate(x)
48
 
 
49
 
SEE ALSO
50
 
   date, timer 
51