calendar vocabulary
Factor handbook > Vocabulary index


Documentation
Calendar

Meta-data
Authors:Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
duration tupleyear month day hour minute second
not-a-day-abbreviation tuplestring
not-a-month tuple
not-a-month-abbreviation tuplestring
timestamp tupleyear month day hour minute second gmt-offset
twelve-hour-expected tuplen


Generic words
WordStack effect
april( obj -- timestamp )
august( obj -- timestamp )
beginning-of-year( object -- new-timestamp )
day-name( obj -- string )
days-in-year( obj -- n )
december( obj -- timestamp )
easter( obj -- obj' )
end-of-year( object -- new-timestamp )
february( obj -- timestamp )
gmt( -- timestamp )
gmt-offset( -- hours minutes seconds )
january( obj -- timestamp )
july( obj -- timestamp )
june( obj -- timestamp )
leap-year?( obj -- ? )
march( obj -- timestamp )
may( obj -- timestamp )
month-name( obj -- string )
november( obj -- timestamp )
october( obj -- timestamp )
september( obj -- timestamp )
time+( time1 time2 -- time3 )
time-( time1 time2 -- time3 )


Ordinary words
WordStack effect
(day-of-year)( year month day -- n )
(days-in-month)( year month -- n )
(time-)( timestamp timestamp -- n )
<date-gmt>( year month day -- timestamp )
<date>( year month day -- timestamp )
<duration>( year month day hour minute second -- duration )
<timestamp>( year month day hour minute second gmt-offset -- timestamp )
<year-gmt>( year -- timestamp )
<year>( year -- timestamp )
<zero>( -- timestamp )
>date<( timestamp -- year month day )
>gmt( timestamp -- timestamp' )
>local-time( timestamp -- timestamp' )
>time<( timestamp -- hour minute second )
ago( duration -- timestamp )
am( timestamp n -- new-timestamp )
average-month( -- value )
before( duration -- -duration )
beginning-of-month( timestamp -- new-timestamp )
beginning-of-week( timestamp -- new-timestamp )
check-twelve-hour( n -- n )
convert-timezone( timestamp duration -- timestamp' )
day-abbreviation2( n -- string )
day-abbreviation3( n -- string )
day-abbreviation3-index( string -- n )
day-abbreviation3-predicate( string -- predicate )
day-abbreviations2( -- value )
day-abbreviations3( -- value )
day-abbreviations3-hash( -- value )
day-counts( -- value )
day-names( -- value )
day-of-week( timestamp -- n )
day-of-year( timestamp -- n )
day-predicate( string -- predicate )
day-predicates( -- value )
days( x -- duration )
days-in-month( timestamp -- n )
days-per-year( -- value )
duration>days( duration -- x )
duration>hours( duration -- x )
duration>microseconds( duration -- x )
duration>milliseconds( duration -- x )
duration>minutes( duration -- x )
duration>months( duration -- x )
duration>nanoseconds( duration -- x )
duration>seconds( duration -- x )
duration>years( duration -- x )
easter-month-day( year -- month day )
end-of-month( timestamp -- new-timestamp )
friday( timestamp -- new-timestamp )
friday-of-month( timestamp n -- new-timestamp )
friday?( timestamp -- ? )
gmt-offset-duration( -- duration )
hence( duration -- timestamp )
hours( x -- duration )
hours-per-year( -- value )
instant( -- duration )
julian-day-number( year month day -- n )
julian-day-number>date( n -- year month day )
last-friday-of-month( timestamp -- new-timestamp )
last-monday-of-month( timestamp -- new-timestamp )
last-saturday-of-month( timestamp -- new-timestamp )
last-sunday-of-month( timestamp -- new-timestamp )
last-thursday-of-month( timestamp -- new-timestamp )
last-tuesday-of-month( timestamp -- new-timestamp )
last-wednesday-of-month( timestamp -- new-timestamp )
micros>timestamp( x -- timestamp )
microseconds( x -- duration )
midnight( timestamp -- new-timestamp )
millis>timestamp( x -- timestamp )
milliseconds( x -- duration )
minutes( x -- duration )
minutes-per-year( -- value )
monday( timestamp -- new-timestamp )
monday-of-month( timestamp n -- new-timestamp )
monday?( timestamp -- ? )
month-abbreviation( n -- string )
month-abbreviation-index( string -- n )
month-abbreviations( -- value )
month-abbreviations-hash( -- value )
month-names( -- value )
months( x -- duration )
months-per-year( -- value )
nanoseconds( x -- duration )
noon( timestamp -- new-timestamp )
not-a-day-abbreviation( string -- * )
not-a-month( -- * )
not-a-month-abbreviation( string -- * )
now( -- timestamp )
o'clock( timestamp n -- new-timestamp )
pm( timestamp n -- new-timestamp )
same-day?( ts1 ts2 -- ? )
saturday( timestamp -- new-timestamp )
saturday-of-month( timestamp n -- new-timestamp )
saturday?( timestamp -- ? )
seconds( x -- duration )
seconds-per-year( -- value )
since-1970( duration -- timestamp )
sunday( timestamp -- new-timestamp )
sunday-of-month( timestamp n -- new-timestamp )
sunday?( timestamp -- ? )
thursday( timestamp -- new-timestamp )
thursday-of-month( timestamp n -- new-timestamp )
thursday?( timestamp -- ? )
time*( obj1 obj2 -- obj3 )
time-since-midnight( timestamp -- duration )
timestamp>micros( timestamp -- n )
timestamp>millis( timestamp -- n )
timestamp>unix-time( timestamp -- seconds )
today( -- timestamp )
tomorrow( -- timestamp )
tuesday( timestamp -- new-timestamp )
tuesday-of-month( timestamp n -- new-timestamp )
tuesday?( timestamp -- ? )
twelve-hour-expected( n -- * )
unix-1970( -- timestamp )
unix-time>timestamp( seconds -- timestamp )
valid-timestamp?( timestamp -- ? )
wednesday( timestamp -- new-timestamp )
wednesday-of-month( timestamp n -- new-timestamp )
wednesday?( timestamp -- ? )
weeks( x -- duration )
years( x -- duration )
yesterday( -- timestamp )
zeller-congruence( year month day -- n )


Class predicate words
WordStack effect
duration?( object -- ? )
not-a-day-abbreviation?( object -- ? )
not-a-month-abbreviation?( object -- ? )
not-a-month?( object -- ? )
timestamp?( object -- ? )
twelve-hour-expected?( object -- ? )


Files


Children from resource:basis
VocabularySummary
calendar.formatFormatting dates and times
calendar.modelTimestamp model updated every second
calendar.threadscalendar.threads vocabulary
calendar.unixUnix-specific timezone support and C library time data types
calendar.windowsWindows-specific timezone support


Children from resource:extra
VocabularySummary
calendar.elapsedcalendar.elapsed vocabulary
calendar.holidayscalendar.holidays vocabulary


Children
VocabularySummary
calendar.privatecalendar.private vocabulary