Appendix 374
Time and Date Functions
Spreadsheet and Addressbook use serial numbers to represent times and dates.
The serial numbers begin with 1 = January 1, 1900. The DATE and DATEVALUE
functions return the serial number for a given date.
Function
Description
Example
DATE
(year, month,
day)
Convertsa numeric date (day, month, year)
to the serialnumber format.
Year
can be from
1900 to 2078. For the years 1900 to 1999, you
can enter just the last two digits, for example
96
rather than
1996
.
Month
can be 1Ć12.
Day
can
be a value from 1Ć31, depending on the number
of days in
month
. If you use
year
,
month
, or
day
values that are out of range, DATE returns
#VALUE#.
=DATE(93,01,20)
returns
33988.
=DATE(93,01,32)
returns
#VALUE#, because the
day
value 32 is out of bounds.
DATEVALUE
(string)
Convertsa date (in text form) to the serial
numberformat
=DATEVALUE(1/20/93")
returns
33988.
=DATEVALUE(Jan 20, 1993")
returns
33988.
DAY
(date value)
E
xtracts the day from the serialnumber
format
.
Date_value
must be a serial number.
Use DATEVALUE to convert dates entered as
labels.
=DAY(33988)
returns
20.
=DAY(DATEVALUE(1/20/93"))
returns
20.
HOUR
(time value)
Returns the
hour of the day from
serialnumber
. You can use TIMEVALUE to
convert text time. The hour is an integer from 0
to 23. Time serial numbers are decimal fractions
and can be part of a date/time combination. If
there is no fractional part, the time is midnight.
=HOUR(29453.5)
returns
12.
=HOUR(TIMEVALUE(11:58PM"))
returns
23.
MINUTE
(time
value)
Extractsthe minute from the
serialnumber
. The minute is an integer from 0
to 59. Time serial numbers are decimal fractions
and can be part of a date/time combination. If
there is no fractional part, the time is midnight.
You can use TIMEVALUE to convert text time.
=MINUTE(TIMEVALUE11:58PM")
returns
58.
=MINUTE(29453.55)
returns
12.
MONTH
(date
value)
Extractsthe month from the
serialnumber
.
Month
is an integer from 1 to
12. Time serial numbers are decimal fractions
and can be part of a date/time combination. If
there is no fractional part, the time is midnight.
Use DATEVALUE to convert dates entered as
labels.
=MONTH(DATEVALUE(May 6, 1968"))
returns
5.
=MONTH(25420)
returns
8.
Содержание Ensemble PDP-100J
Страница 11: ......
Страница 71: ...Getting Started 60 Optional Accessories Fax Modem Data Modem Scanner Cut Sheet Feeder ...
Страница 72: ......
Страница 83: ......
Страница 84: ...Word Processing 71 3 Word Processing Important Word Processing Tips ENTER ENTER TAB SPACEBAR TAB ...
Страница 152: ......
Страница 217: ...Spreadsheet 203 The following dialog box appears ...
Страница 219: ......
Страница 262: ......
Страница 269: ......
Страница 284: ......
Страница 301: ......
Страница 306: ...Calculator 287 Cut and paste Handling Error or Overflow Conditions To clear an error ...
Страница 308: ...Calculator 289 Converting Measurements S S S S S S To convert ...
Страница 312: ......
Страница 325: ......
Страница 327: ...Book Reader 306 To close a book Using Information and Text To read a book ...
Страница 329: ...Book Reader 308 Printing from Book Reader To print selected text from a book To print the current page ...
Страница 330: ......
Страница 333: ......
Страница 337: ...Text File Editor 314 ...
Страница 338: ......
Страница 345: ......
Страница 349: ...Scanner 324 What to do if an error occurs Error Condition Message Solution ...
Страница 350: ......
Страница 379: ......
Страница 387: ...Appendix 360 Color Clip Art SNOWMAN TEA TIGER TURTLECA WANDFLOW WATERLIL ...
Страница 396: ...Appendix 369 Print Functions Function Description Example ...
Страница 405: ...Appendix 378 Fonts Occidental Font Symbols keyboard International keyboard Math Symbols ...
Страница 406: ...Appendix 379 Ping Pong Font Pointer keyboard Numbers keyboard Symbols keyboard Other Symbols ...
Страница 407: ...Appendix 380 Shattuck Avenue Font Symbols keyboard International keyboard Math Symbols ...
Страница 408: ...Appendix 381 URW Mono Font Symbols keyboard International keyboard Math Symbols ...
Страница 409: ...Appendix 382 URW Roman Font Symbols keyboard International keyboard Math Symbols ...
Страница 410: ...Appendix 383 URW Sans Font Symbols keyboard International keyboard Math Symbols ...
Страница 411: ...Appendix 384 URW SymbolsPS Font Bracket keyboard Greek keyboard Symbol Math keyboard Symbol Other keyboard ...
Страница 414: ......
Страница 418: ...Glossary 390 ...
Страница 420: ...Glossary 392 0 1 1 1 ...
Страница 421: ...Glossary 393 text style sheet ...
Страница 422: ...Glossary 394 ...
Страница 423: ......
Страница 428: ...Index 399 D cont d 1 0 1 1 1 1 0 1 0 1 1 0 2 1 0 0 0 1 0 ...
Страница 430: ...Index 401 F cont d 1 1 0 0 1 0 0 0 0 0 0 0 0 0 G 1 0 1 ...
Страница 436: ...Index 407 S cont d 1 3 3 1 1 0 1 4 0 3 0 0 1 1 3 1 3 1 0 1 1 1 0 1 3 1 0 1 2 ...
Страница 440: ......