5. Bigloo -- Standard Library<br>5.10 Date

5. Bigloo -- Standard Library
5.10 Date

Browsing

Home: Bigloo
A ``practical Scheme compiler''
User manual for version 2.6c
March 2004

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? objbigloo 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-datebigloo procedure
Returns a date object representing the current date.

current-secondsbigloo procedure
Returns an elong integer representing the current date expressed in seconds.

date->secondsbigloo procedure
seconds->datebigloo procedure
Convert from date and elong.

date->string datebigloo procedure
date->utc-string datebigloo procedure
seconds->string elongbigloo procedure
seconds->utc-string elongbigloo procedure
Construct a textual representation of the date passed in argument

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

date-minute datebigloo procedure
Returns the minute of a date, in the range 0...59.

date-hour datebigloo procedure
Returns the hour of a date, in the range 0...23.

date-day datebigloo procedure
Returns the day of a date, in the range 1...31.

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

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

date-month datebigloo procedure
Returns the month of a date, in the range 1...12.

date-year datebigloo procedure
Returns the year of a date.

date-timezone datebigloo procedure
Returns the timezone of a date.

date-is-dst datebigloo 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 elong2bigloo procedure
*second elong1 elong2bigloo procedure
-second elong1 elong2bigloo procedure
=second elong1 elong2bigloo procedure
>second elong1 elong2bigloo procedure
>=second elong1 elong2bigloo procedure
<second elong1 elong2bigloo procedure
<=second elong1 elong2bigloo procedure
Arithmetic operators on seconds.

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

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

day-name intbigloo procedure
day-aname intbigloo procedure
Return the name and the abbreviated name of a week day.

month-name intbigloo procedure
month-aname intbigloo procedure
Return the name and the abbreviated name of a month.

leap-year? intbigloo 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 Mar 16 17:05:46 2004