5. Bigloo -- Standard Library 5.10 Date

Browsing
Home: | Bigloo A ``practical Scheme compiler'' User manual for version 2.6b December 2003
Previous chapter: | Core Language
Next chapter: | Pattern Matching
Standard Library
5.1 | Scheme Library
| 5.1.1 | Booleans
| 5.1.2 | Equivalence predicates
| 5.1.3 | Pairs and lists
| 5.1.4 | Symbols
| 5.1.5 | Keywords
| 5.1.6 | Numbers
| 5.1.7 | Characters
| 5.1.8 | UCS-2 Characters
| 5.1.9 | Strings
| 5.1.10 | Unicode (UCS-2) Strings
| 5.1.11 | Vectors
| 5.1.12 | Control features
5.2 | Input and output
5.3 | Structures and Records
| 5.3.1 | Structures
| 5.3.2 | Records (SRFI-9)
5.4 | Serialization
5.5 | Bit manipulation
5.6 | Hash Tables
| 5.6.1 | Hash tables
| 5.6.2 | Deprecated Hash tables
5.7 | System programming
| 5.7.1 | Operating System interface
| 5.7.2 | Files
5.8 | Process support
5.9 | Socket support
5.10 | Date
5.11 | Posix Regular Expressions
| 5.11.1 | Regular Expressions Procedures
| 5.11.2 | Regular Expressions Pattern Language
| 5.11.3 | An Extended Example
Chapters
| Acknowledgements
1. | Table of contents
2. | Overview of Bigloo
3. | Modules
4. | Core Language
5. | Standard Library
6. | Pattern Matching
7. | Object System
8. | Threads
9. | Regular parsing
10. | Lalr(1) parsing
11. | Errors and Assertions
12. | Eval and code interpretation
13. | Macro expansion
14. | Command Line Parsing
15. | Explicit typing
16. | The C interface
17. | The Java interface
18. | Bigloo Libraries
19. | Extending the Runtime System
20. | SRFIs
21. | DSSSL support
22. | Compiler description
23. | User Extensions
24. | Bigloo Development Environment
25. | Global Index
26. | Library Index
| Bibliography
date? obj | bigloo procedure
Returns `#t` if and only if `obj` is a date as returned by `make-date`, `current-date`, or `seconds->date`. It returns `#f` otherwise.

make-date sec min hour day mon year [timezone] [dst] | bigloo procedure
Creates a `date` object from the integer value passed as argument. Example:
    (write (make-date 0 22 17 5 2 2003 0))
      -| #<date:Wed Feb  5 17:22:00 2003>
This argument `date` is either `-1` when the information is not available, `0` when daylight saving is disabled, `1` when daylight saving is enabled.

date-copy date [s] [m] [h] [d] [m] [year] | bigloo procedure
Creates a new date from the argument `date`. Example:
    (date-copy (current-date) 1 0 0)

current-date | bigloo procedure
Returns a `date` object representing the current date.

current-seconds | bigloo procedure
Returns an `elong` integer representing the current date expressed in seconds.

date->seconds | bigloo procedure
seconds->date | bigloo procedure
Convert from `date` and `elong`.

date->string date | bigloo procedure
date->utc-string date | bigloo procedure
seconds->string elong | bigloo procedure
seconds->utc-string elong | bigloo procedure
Construct a textual representation of the date passed in argument

date-second date | bigloo procedure
Returns the number of seconds of a date, in the range `0...59`.

date-minute date | bigloo procedure
Returns the minute of a date, in the range `0...59`.

date-hour date | bigloo procedure
Returns the hour of a date, in the range `0...23`.

date-day date | bigloo procedure
Returns the day of a date, in the range `1...31`.

date-wday date | bigloo procedure
Returns the week day of a date, in the range `1...7`.

date-yday date | bigloo procedure
Returns the year day of a date, in the range `1...366`.

date-month date | bigloo procedure
Returns the month of a date, in the range `1...12`.

date-year date | bigloo procedure
Returns the year of a date.

date-timezone date | bigloo procedure
Returns the timezone of a date.

date-is-dst date | bigloo procedure
Returns `-1` if the information is not available, `0` is the date does not contain daylight saving adjustment, `1` if it contains a daylight saving adjustment.

+second elong1 elong2 | bigloo procedure
*second elong1 elong2 | bigloo procedure
-second elong1 elong2 | bigloo procedure
=second elong1 elong2 | bigloo procedure
>second elong1 elong2 | bigloo procedure
>=second elong1 elong2 | bigloo procedure
<second elong1 elong2 | bigloo procedure
<=second elong1 elong2 | bigloo procedure
Arithmetic operators on seconds.

integer->second | bigloo procedure
Converts a Bigloo fixnum integer into a second number.

day-seconds | bigloo procedure
Returns the number of seconds contained in one day.

day-name int | bigloo procedure
day-aname int | bigloo procedure
Return the name and the abbreviated name of a week day.

month-name int | bigloo procedure
month-aname int | bigloo procedure
Return the name and the abbreviated name of a month.

leap-year? int | bigloo procedure
Returns `#t` if and only if the year `int` is a leap year. Returns `#f` otherwise.

This Scribe page has been generated by `scribeinfo`.
Last update Tue Dec 16 13:46:41 2003