home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / simple-date-test.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  7.3 KB  |  124 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <gmr:Workbook xmlns:gmr="http://www.gnome.org/gnumeric/v7">
  18.   <gmr:SheetNameIndex>
  19.     <gmr:SheetName>Sheet 0</gmr:SheetName>
  20.   </gmr:SheetNameIndex>
  21.   <gmr:Sheets>
  22.     <gmr:Sheet>
  23.       <gmr:Name>Sheet 0</gmr:Name>
  24.       <gmr:MaxCol>2</gmr:MaxCol>
  25.       <gmr:MaxRow>20</gmr:MaxRow>
  26.       <gmr:Styles>
  27.         <gmr:StyleRegion startCol="1" startRow="5" endCol="2" endRow="5">
  28.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  29.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="m/d/yy"/>
  30.         </gmr:StyleRegion>
  31.         <gmr:StyleRegion startCol="1" startRow="6" endCol="2" endRow="6">
  32.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  33.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="d-mmm-yy"/>
  34.         </gmr:StyleRegion>
  35.         <gmr:StyleRegion startCol="1" startRow="7" endCol="2" endRow="7">
  36.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  37.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="d-mmm"/>
  38.         </gmr:StyleRegion>
  39.         <gmr:StyleRegion startCol="1" startRow="8" endCol="2" endRow="8">
  40.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  41.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="mmm-yy"/>
  42.         </gmr:StyleRegion>
  43.         <gmr:StyleRegion startCol="1" startRow="9" endCol="2" endRow="9">
  44.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  45.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="h:mm AM/PM"/>
  46.         </gmr:StyleRegion>
  47.         <gmr:StyleRegion startCol="1" startRow="10" endCol="2" endRow="10">
  48.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  49.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="h:mm:ss AM/PM"/>
  50.         </gmr:StyleRegion>
  51.         <gmr:StyleRegion startCol="1" startRow="11" endCol="2" endRow="11">
  52.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  53.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="h:mm"/>
  54.         </gmr:StyleRegion>
  55.         <gmr:StyleRegion startCol="1" startRow="12" endCol="2" endRow="12">
  56.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  57.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="h:mm:ss"/>
  58.         </gmr:StyleRegion>
  59.         <gmr:StyleRegion startCol="1" startRow="13" endCol="2" endRow="13">
  60.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  61.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="m/d/yy h:mm"/>
  62.         </gmr:StyleRegion>
  63.         <gmr:StyleRegion startCol="1" startRow="16" endCol="1" endRow="18">
  64.           <gmr:Style HAlign="1" VAlign="2" WrapText="0" Orient="1" Shade="0" Indent="0" Locked="1"
  65.                      Hidden="0" Fore="0:0:0" Back="FFFF:FFFF:FFFF" PatternColor="0:0:0" Format="m/d/yy"/>
  66.         </gmr:StyleRegion>
  67.       </gmr:Styles>
  68.       <gmr:Cols DefaultSizePts="48">
  69.         <gmr:ColInfo No="0" Unit="150" MarginA="1" MarginB="2"/>
  70.         <gmr:ColInfo No="1" Unit="200" MarginA="1" MarginB="2"/>
  71.         <gmr:ColInfo No="2" Unit="200" MarginA="1" MarginB="2"/>
  72.       </gmr:Cols>
  73.       <gmr:Rows DefaultSizePts="12.8"/>
  74.       <gmr:Cells>
  75.         <gmr:Cell Col="0" Row="0" ValueType="60">current serial number:</gmr:Cell>
  76.         <gmr:Cell Col="1" Row="0">=now()</gmr:Cell>
  77.         <gmr:Cell Col="0" Row="1" ValueType="60">today's serial number:</gmr:Cell>
  78.         <gmr:Cell Col="1" Row="1">=today()</gmr:Cell>
  79.         <gmr:Cell Col="0" Row="2" ValueType="60">current time serial:</gmr:Cell>
  80.         <gmr:Cell Col="1" Row="2">=now()-today()</gmr:Cell>
  81.  
  82.         <gmr:Cell Col="0" Row="4" ValueType="60">date formats:</gmr:Cell>
  83.         <gmr:Cell Col="1" Row="4" ValueType="60">formatted serial number '37777,7':</gmr:Cell>
  84.         <gmr:Cell Col="2" Row="4" ValueType="60">formatted current serial number, i.e. 'now()':</gmr:Cell>
  85.         <gmr:Cell Col="0" Row="5" ValueType="60">m/d/yy</gmr:Cell>
  86.         <gmr:Cell Col="1" Row="5" ValueType="40">37777,7</gmr:Cell>
  87.         <gmr:Cell Col="2" Row="5">=now()</gmr:Cell>
  88.         <gmr:Cell Col="0" Row="6" ValueType="60">d-mmm-yy</gmr:Cell>
  89.         <gmr:Cell Col="1" Row="6" ValueType="40">37777,7</gmr:Cell>
  90.         <gmr:Cell Col="2" Row="6">=now()</gmr:Cell>
  91.         <gmr:Cell Col="0" Row="7" ValueType="60">d-mmm</gmr:Cell>
  92.         <gmr:Cell Col="1" Row="7" ValueType="40">37777,7</gmr:Cell>
  93.         <gmr:Cell Col="2" Row="7">=now()</gmr:Cell>
  94.         <gmr:Cell Col="0" Row="8" ValueType="60">mmm-yy</gmr:Cell>
  95.         <gmr:Cell Col="1" Row="8" ValueType="40">37777,7</gmr:Cell>
  96.         <gmr:Cell Col="2" Row="8">=now()</gmr:Cell>
  97.         <gmr:Cell Col="0" Row="9" ValueType="60">h:mm AM/PM</gmr:Cell>
  98.         <gmr:Cell Col="1" Row="9" ValueType="40">37777,7</gmr:Cell>
  99.         <gmr:Cell Col="2" Row="9">=now()</gmr:Cell>
  100.         <gmr:Cell Col="0" Row="10" ValueType="60">h:mm:ss AM/PM</gmr:Cell>
  101.         <gmr:Cell Col="1" Row="10" ValueType="40">37777,7</gmr:Cell>
  102.         <gmr:Cell Col="2" Row="10">=now()</gmr:Cell>
  103.         <gmr:Cell Col="0" Row="11" ValueType="60">h:mm</gmr:Cell>
  104.         <gmr:Cell Col="1" Row="11" ValueType="40">37777,7</gmr:Cell>
  105.         <gmr:Cell Col="2" Row="11">=now()</gmr:Cell>
  106.         <gmr:Cell Col="0" Row="12" ValueType="60">h:mm:ss</gmr:Cell>
  107.         <gmr:Cell Col="1" Row="12" ValueType="40">37777,7</gmr:Cell>
  108.         <gmr:Cell Col="2" Row="12">=now()</gmr:Cell>
  109.         <gmr:Cell Col="0" Row="13" ValueType="60">m/d/yy h:mm</gmr:Cell>
  110.         <gmr:Cell Col="1" Row="13" ValueType="40">37777,7</gmr:Cell>
  111.         <gmr:Cell Col="2" Row="13">=now()</gmr:Cell>
  112.  
  113.         <gmr:Cell Col="0" Row="15" ValueType="60">We can also calculate with dates:</gmr:Cell>
  114.         <gmr:Cell Col="0" Row="16" ValueType="60">today plus one week:</gmr:Cell>
  115.         <gmr:Cell Col="1" Row="16">=date(year(now()), month(now()), day(now()) + 7)</gmr:Cell>
  116.         <gmr:Cell Col="0" Row="17" ValueType="60">today plus three months:</gmr:Cell>
  117.         <gmr:Cell Col="1" Row="17">=date(year(now()), month(now()) + 3, day(now()))</gmr:Cell>
  118.         <gmr:Cell Col="0" Row="18" ValueType="60">today minus 2 years:</gmr:Cell>
  119.         <gmr:Cell Col="1" Row="18">=date(year(now()) - 2, month(now()), day(now()))</gmr:Cell>
  120.       </gmr:Cells>
  121.     </gmr:Sheet>
  122.   </gmr:Sheets>
  123. </gmr:Workbook>
  124.