com.cyc.cycjava.cycl
Class numeric_date_utilities

java.lang.Object
  extended by com.cyc.tool.subl.util.SubLTrampolineFile
      extended by com.cyc.tool.subl.util.SubLTranslatedFile
          extended by com.cyc.cycjava.cycl.numeric_date_utilities
All Implemented Interfaces:
CommonSymbols, SubLFile

public final class numeric_date_utilities
extends SubLTranslatedFile


Nested Class Summary
 
Nested classes/interfaces inherited from class com.cyc.tool.subl.util.SubLTranslatedFile
SubLTranslatedFile.SubL
 
Field Summary
static SubLSymbol $hours_in_a_day$
          the number of hours in a day
static SubLInteger $int0$31622400
           
static SubLInteger $int1$31536000
           
static SubLInteger $int100$1000000
           
static SubLInteger $int101$100000000
           
static SubLInteger $int102$10000000000
           
static SubLInteger $int104$400
           
static SubLInteger $int116$3155760000
           
static SubLInteger $int117$31556908800
           
static SubLInteger $int118$31556995200
           
static SubLInteger $int14$31
           
static SubLInteger $int15$23
           
static SubLInteger $int16$59
           
static SubLInteger $int2$604800
           
static SubLInteger $int23$1000
           
static SubLInteger $int3$86400
           
static SubLInteger $int4$3600
           
static SubLInteger $int48$100
           
static SubLInteger $int5$60
           
static SubLInteger $int6$24
           
static SubLInteger $int81$10000
           
static SubLInteger $int91$235959
           
static SubLInteger $int97$999
           
static SubLSymbol $kw63$EOF
           
static SubLSymbol $kw86$FLOAT
           
static SubLSymbol $kw87$INTEGER
           
static SubLList $list105
           
static SubLList $list106
           
static SubLList $list107
           
static SubLList $list109
           
static SubLList $list13
           
static SubLList $list18
           
static SubLList $list37
           
static SubLList $list38
           
static SubLList $list65
           
static SubLList $list68
           
static SubLList $list69
           
static SubLList $list7
           
static SubLList $list78
           
static SubLList $list88
           
static SubLList $list90
           
static SubLSymbol $minutes_in_an_hour$
          the number of minutes in an hour
static SubLSymbol $months_in_a_year$
          the number of months in a year
static SubLSymbol $number_month_table$
           
static SubLSymbol $number_wkday_table$
           
static SubLSymbol $seconds_in_a_century$
          HACK
static SubLSymbol $seconds_in_a_day$
          Yep.
static SubLSymbol $seconds_in_a_leap_year$
          True
static SubLSymbol $seconds_in_a_minute$
          the number of seconds in a minute
static SubLSymbol $seconds_in_a_non_leap_year$
          Also True
static SubLSymbol $seconds_in_a_week$
          Right
static SubLSymbol $seconds_in_an_even_millennium$
           
static SubLSymbol $seconds_in_an_hour$
          uh-huh.
static SubLSymbol $seconds_in_an_odd_millennium$
           
static SubLString $str103$MM_DD_YY_adjust_problem___s__s__s
           
static SubLString $str110$_
           
static SubLString $str111$__
           
static SubLString $str112$_2__0D__2__0D__2__0D__2__0D__2__0
           
static SubLString $str113$_D_day__P__D__2__0D__2__0D
           
static SubLString $str114$_D__2__0D__2__0D
           
static SubLString $str115$_D__2__0D
           
static SubLString $str20$
           
static SubLString $str21$_a__6__0D
           
static SubLString $str22$_a__6__0D__3__0D
           
static SubLString $str24$mm_dd_yyyy_hh_mm_ss
           
static SubLString $str25$_D_2__0D_2__0D_2__0D_2__0D_2__0D
           
static SubLString $str28$_D_second__P
           
static SubLString $str29$__
           
static SubLString $str30$F_seconds
           
static SubLString $str31$_D_hours___D_minute__P
           
static SubLString $str32$_D_minute__P__
           
static SubLString $str35$_A__A
           
static SubLString $str36$Template__s_is_not_a_valid_dateti
           
static SubLString $str40$hh_mm_ss
           
static SubLString $str41$hh_mm_ss_mmm
           
static SubLString $str42$hh_mm
           
static SubLString $str43$hh_mm_ss_m
           
static SubLString $str44$hh_mm_ss_mm
           
static SubLString $str51$Template_or_template_portion__S_d
           
static SubLString $str52$_
           
static SubLString $str53$__0D
           
static SubLString $str54$_2__0D__2__0D__2__0D
           
static SubLString $str55$_2__0D__2__0D
           
static SubLString $str56$_2__0D__2__0D__2__0D__3__0D
           
static SubLString $str57$_2__0D__2__0D__2__0D__2__0D
           
static SubLString $str58$_2__0D__2__0D__2__0D__1__0D
           
static SubLString $str59$Template_or_template_portion__A_w
           
static SubLString $str60$The_template__S_doesn_t_match_the
           
static SubLString $str61$Template_or_template_portion__A_w
           
static SubLString $str62$The_date_string__A_and_the_templa
           
static SubLString $str64$Template_or_template_portion__A_d
           
static SubLString $str66$The_template__A_is_not_a_recogniz
           
static SubLString $str67$The_time_string__A_and_the_templa
           
static SubLString $str70$__A_day_A
           
static SubLString $str71$s
           
static SubLString $str72$__A_hour_A
           
static SubLString $str73$__A_minute_A
           
static SubLString $str75$__A_second_A
           
static SubLString $str76$_0_seconds
           
static SubLString $str83$_2__0d__2__0d__4__0d
           
static SubLString $str84$_2__0d__2__0d__d
           
static SubLString $str85$_2__0d__2__0d___d
           
static SubLString $str92$second__S_not_in_the_range_0_59
           
static SubLString $str93$minute__S_not_in_the_range_0_59
           
static SubLString $str94$hour__S_not_in_the_range_0_59
           
static SubLString $str96$_2__0d__2__0d__2__0d
           
static SubLString $str98$second__S_not_in_the_range_0_999
           
static SubLString $str99$_2__0d__2__0d__2__0d__3__0d
           
static SubLSymbol $sym10$CSETQ
           
static SubLSymbol $sym108$ABBREVIATION_FOR_MONTH_NUMBER
           
static SubLSymbol $sym11$TRUNCATE
           
static SubLSymbol $sym12$_
           
static SubLSymbol $sym17$TIME_FROM_NOW
           
static SubLSymbol $sym19$UNIVERSAL_TIME_P
           
static SubLSymbol $sym26$NON_NEGATIVE_NUMBER_P
           
static SubLSymbol $sym27$NON_NEGATIVE_INTEGER_P
           
static SubLSymbol $sym33$DATETIME_STRING_TEMPLATE_P
           
static SubLSymbol $sym34$NON_WHITESPACE_P
           
static SubLSymbol $sym39$VALID_DATE_TEMPLATE_CHAR
           
static SubLSymbol $sym45$NON_DATE_TIME_WHITESPACE_P
           
static SubLSymbol $sym46$VALID_YEAR_TOKEN
           
static SubLSymbol $sym47$VALID_DATE_SEPARATOR
           
static SubLSymbol $sym49$VALID_MONTH_TOKEN
           
static SubLSymbol $sym50$VALID_DAY_TOKEN
           
static SubLSymbol $sym74$DOUBLE_FLOAT
           
static SubLSymbol $sym77$ELAPSED_SECONDS_STRING
           
static SubLSymbol $sym79$UNIVERSAL_DATE_P
           
static SubLSymbol $sym8$PROGN
           
static SubLSymbol $sym80$INTEGERP
           
static SubLSymbol $sym82$PLUSP
           
static SubLSymbol $sym89$_JULIAN_OFFSETS_
           
static SubLSymbol $sym9$CTIME
           
static SubLSymbol $sym95$UNIVERSAL_SECOND_P
           
static SubLFile me
           
static java.lang.String myName
           
 
Fields inherited from class com.cyc.tool.subl.util.SubLTranslatedFile
EMPTY_SUBL_OBJECT_ARRAY
 
Fields inherited from interface com.cyc.tool.subl.jrtl.nativeCode.subLisp.CommonSymbols
ANSWER_TAG, APPEND_KEYWORD, APPEND_STACK_TRACES_TO_ERROR_MESSAGES, AREF, ASSEMBLE_FIXNUMS_TO_INTEGER, ATOM, BIGNUMP, BINARY_KEYWORD, BINDING_TYPE, BOOLEANP, CAAR, CADR, CAND, CAR, CCATCH, CDEC, CDESTRUCTURING_BIND, CDO, CDO_ALL_SYMBOLS, CDO_EXTERNAL_SYMBOLS, CDO_SYMBOLS, CDOHASH, CDOLIST, CDOTIMES, CDR, CHAR, CHAR_E_SYMBOL, CHAR_EQUAL_SYMBOL, CHAR_GREATER_THAN_OR_EQUAL_SYMBOL, CHAR_GREATER_THAN_SYMBOL, CHAR_GT_SYMBOL, CHAR_GTE_SYMBOL, CHAR_LESS_THAN_OR_EQUAL_SYMBOL, CHAR_LESS_THAN_SYMBOL, CHAR_LT_SYMBOL, CHAR_LTE_SYMBOL, CHAR_NE_SYMBOL, CHAR_NOT_EQUAL_SYMBOL, CHARACTERP, CHECK_TYPE, CINC, CLET, CMULTIPLE_VALUE_BIND, CNOT, CONS, CONSP, CONSTANT, COR, CPOP, CPROGV, CPUSH, CPUSHNEW, CREATE_KEYWORD, CSETF, CSETQ, CSOME, CTIME, CUNWIND_PROTECT, CVS_ID, DEBUG_IO, DECLAIM, DECLARE, DEFCONSTANT, DEFINE, DEFLEXICAL, DEFMACRO, DEFPARAMETER, DEFVAR, DIRECTION_KEYWORD, DYNAMIC, EIGHT_INTEGER, EIGHTEEN_INTEGER, ELEMENT_TYPE_KEYWORD, ELEVEN_INTEGER, END_KEYWORD, ENFORCE_MUST, ENFORCE_TYPE, EQ, EQL, EQUAL, EQUALP, ERROR, ERROR_KEYWORD, ERROR_OUTPUT, EVAL, EXTERNAL_FORMAT_KEYWORD, EXTERNAL_KEYWORD, FIF, FIFTEEN_INTEGER, FIRST, FIVE_INTEGER, FIXNUMP, FLOATP, FOUR_INTEGER, FOURTEEN_INTEGER, FUNCTION, FUNCTION_SPEC_P, FUNCTIONP, FUNLESS, FWHEN, GET, GETHASH, GETHASH_WITHOUT_VALUES, GUID_P, HASH_TABLE_ITERATOR_P, HASH_TABLE_P, IDENTITY, IF_DOES_NOT_EXIST_KEYWORD, IF_EXISTS_KEYWORD, IGNORE, INITIALIZATION_TYPE, INITIALIZER, INPUT_KEYWORD, INPUT_STREAM_P, INTEGERP, INTERNAL_KEYWORD, IO_KEYWORD, KEYWORDP, KILL_KEYWORD, LAMBDA_SYMBOL, LEXICAL, LIST, LISTP, LISTS, LOCK_P, LONG_BIGNUM_P, MACRO_ENV, MACRO_FORM, MEDIUM_BIGNUM_P, MEMBER, MINUS_ONE_INTEGER, MULTIPLE_VALUE_LIST, MUST, NCONC, NEW_VERSION_KEYWORD, NIL, NINE_INTEGER, NINETEEN_INTEGER, NREVERSE, NTH, NTH_VALUE, NULL, NULL_INPUT, NULL_OUTPUT, NUM_E_SYMBOL, NUM_GT_SYMBOL, NUM_GTE_SYMBOL, NUM_LT_SYMBOL, NUM_LTE_SYMBOL, NUM_NE_SYMBOL, NUMBERP, ONE_HUNDRED_THIRTY_SEVEN_INTEGER, ONE_HUNDRED_TWENTY_SEVEN_INTEGER, ONE_INTEGER, ONE_THOUSAND_INTEGER, OPTIONAL_SYMBOL, OTHERWISE, OUTPUT_KEYWORD, OUTPUT_STREAM_P, OVERWRITE_KEYWORD, PACKAGEP, PCASE, PCOND, PIF, PROBE_KEYWORD, PROCESS_TO_END, PROCESSP, PROCLAIM, PROGN, PUNLESS, PWHEN, QUERY_IO, QUIT, QUOTE, RENAME_AND_DELETE_KEYWORD, REST_SYMBOL, RET, RET_NIL, RET_T, RETURN_TAG, REVERSE, RW_LOCK_P, SECOND, SEQUENCEP, SEVEN_INTEGER, SEVENTEEN_INTEGER, SHORT_BIGNUM_P, SHOW_STACK_TRACES, SIX_INTEGER, SIXTEEN_INTEGER, SIXTY_FOUR_INTEGER, SORT, SSS, STANDARD_INPUT, STANDARD_OUTPUT, START_KEYWORD, STREAMP, STRING_E_SYMBOL, STRING_EQUAL_SYMBOL, STRING_GREATER_THAN_OR_EQUAL_SYMBOL, STRING_GREATER_THAN_SYMBOL, STRING_GT_SYMBOL, STRING_GTE_SYMBOL, STRING_LESS_THAN_OR_EQUAL_SYMBOL, STRING_LESS_THAN_SYMBOL, STRING_LT_SYMBOL, STRING_LTE_SYMBOL, STRING_NE_SYMBOL, STRING_NOT_EQUAL_SYMBOL, STRINGP, STRUCTURE_P, SUPERSEDE_KEYWORD, SUSPEND_TYPE_CHECKING, SYMBOL_FUNCTION, SYMBOL_VALUE, SYMBOLP, T, TEN_INTEGER, TERMINAL_IO, TEXT_KEYWORD, THIRTEEN_INTEGER, THIRTY_FOUR_INTEGER, THIRTY_THREE_INTEGER, THIRTY_TWO_INTEGER, THREE_INTEGER, TRACE_OUTPUT, TRUE, TWELVE_INTEGER, TWENTY_INTEGER, TWO_HUNDRED_FIFTY_FOUR_INTEGER, TWO_HUNDRED_FORTY_FOUR_INTEGER, TWO_INTEGER, UNDECLARED, UNPROVIDED, VALUES, VECTOR, VECTORP, WITH_ERROR_HANDLER, WITH_STATIC_AREA, WITH_THREAD_PRIVATE_AREA, WITH_WORKING_AREA, WORLD, ZERO_DOUBLE, ZERO_INTEGER
 
Method Summary
static SubLObject date_template_p(SubLObject template)
           
static SubLObject declare_numeric_date_utilities_file()
           
 void declareFunctions()
          Declares the mapping between functions and symbols for all named functions defined in the file.
static SubLObject decode_elapsed_seconds(SubLObject elapsed_seconds)
          Decode ELAPSED-SECONDS into 4 return values: seconds minutes hours elapsed-days
static SubLObject elapsed_internal_real_time_to_elapsed_seconds(SubLObject elapsed)
           
static SubLObject elapsed_internal_real_time(SubLObject reference_time, SubLObject comparison_time)
          Return the number of elapsed internal real time units from COMPARISON-TIME to REFERENCE-TIME.
static SubLObject elapsed_time_abbreviation_string(SubLObject elapsed_seconds)
           
static SubLObject encode_date_from_template(SubLObject day, SubLObject month, SubLObject year, SubLObject template)
           
static SubLObject encode_datetime_string_from_template(SubLObject millisecond, SubLObject second, SubLObject minute, SubLObject hour, SubLObject day, SubLObject month, SubLObject year, SubLObject template)
          Returns a string in the format specified by TEMPLATE representing the datetime having the stated values for MILLISECOND, SECOND, MINUTE, HOUR, DAY, MONTH, YEAR.
static SubLObject encode_next_date_element(SubLObject day, SubLObject month, SubLObject year, SubLObject template, SubLObject elem_length, SubLObject item)
           
static SubLObject encode_time_from_template(SubLObject millisecond, SubLObject second, SubLObject minute, SubLObject hour, SubLObject template)
           
static SubLObject encode_timestring(SubLObject second, SubLObject minute, SubLObject hour, SubLObject date, SubLObject month, SubLObject year)
           
static SubLObject encode_universal_date(SubLObject day, SubLObject month, SubLObject year)
          encode DAY MONTH YEAR in a universal date integer of the form yyyymmdd
static SubLObject encode_universal_second(SubLObject second, SubLObject minute, SubLObject hour)
          encode SECOND MINUTE HOUR in a universal second integer of the form HHMMSS
static SubLObject encode_universal_timestring(SubLObject second, SubLObject minute, SubLObject hour, SubLObject date, SubLObject month, SubLObject year)
           
static SubLObject get_universal_date(SubLObject universal_time, SubLObject time_zone)
          Return the current date as an integer, i.e.
static SubLObject get_universal_second(SubLObject universal_time)
          Return the current second within the day as an integer in HHMMSS form, i.e.
static SubLObject get_utc_time_with_milliseconds()
          Returns the current utc time with millisecond accuracy, taking into account the platform-specfic implementations of get-internal-real-time.
static SubLObject init_numeric_date_utilities_file()
           
 void initializeVariables()
          Initializes all global variables and private internal variables for constants defined in the file.
static SubLObject internal_real_time_p(SubLObject object)
          Return T iff OBJECT is an internal real time.
static SubLObject n_digit_template_element_p(SubLObject template, SubLObject n, SubLObject token_checker, SubLObject separator_checker)
           
 void runTopLevelForms()
          Runs all top-level forms in order.
static SubLObject setup_numeric_date_utilities_file()
           
static SubLObject time_from_now(SubLObject seconds)
          Legacy function name.
static SubLObject time_template_p(SubLObject template)
           
static SubLObject timestring_int(SubLObject universal_time)
           
static SubLObject timestring(SubLObject universal_time)
          TIMESTRING returns a string in the format mm/dd/yyyy hh:mm:ss from the universal time given.
static SubLObject universal_date_p(SubLObject object)
          Return T iff OBJECT is a valid universal date.
static SubLObject universal_second_p(SubLObject object)
          Return T iff OBJECT is a valid universal second.
static SubLObject universal_time_seconds_from_now(SubLObject seconds, SubLObject reference_time)
           
static SubLObject universal_timestring(SubLObject universal_time)
          UNIVERSAL-TIMESTRING returns a string in the format yyyymmddhhmmss from the universal time given.
static SubLObject valid_date_separator(SubLObject v_char)
           
static SubLObject valid_date_template_char(SubLObject v_char)
           
static SubLObject valid_day_token(SubLObject v_char)
           
static SubLObject valid_month_token(SubLObject v_char)
           
static SubLObject valid_year_token(SubLObject v_char)
           
 
Methods inherited from class com.cyc.tool.subl.util.SubLTranslatedFile
extractFunctionNamed
 
Methods inherited from class com.cyc.tool.subl.util.SubLTrampolineFile
checkType, enforceType, extractBinaryFunc, extractCount, extractEnd, extractEndUsingSize, extractPackage, extractStart, extractUnaryFunc, main
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

me

public static final SubLFile me

myName

public static final java.lang.String myName
See Also:
Constant Field Values

$seconds_in_a_leap_year$

public static SubLSymbol $seconds_in_a_leap_year$
True


$seconds_in_a_non_leap_year$

public static SubLSymbol $seconds_in_a_non_leap_year$
Also True


$seconds_in_a_week$

public static SubLSymbol $seconds_in_a_week$
Right


$seconds_in_a_day$

public static SubLSymbol $seconds_in_a_day$
Yep.


$seconds_in_an_hour$

public static SubLSymbol $seconds_in_an_hour$
uh-huh.


$seconds_in_a_minute$

public static SubLSymbol $seconds_in_a_minute$
the number of seconds in a minute


$minutes_in_an_hour$

public static SubLSymbol $minutes_in_an_hour$
the number of minutes in an hour


$hours_in_a_day$

public static SubLSymbol $hours_in_a_day$
the number of hours in a day


$months_in_a_year$

public static SubLSymbol $months_in_a_year$
the number of months in a year


$number_wkday_table$

public static SubLSymbol $number_wkday_table$

$number_month_table$

public static SubLSymbol $number_month_table$

$seconds_in_a_century$

public static SubLSymbol $seconds_in_a_century$
HACK


$seconds_in_an_odd_millennium$

public static SubLSymbol $seconds_in_an_odd_millennium$

$seconds_in_an_even_millennium$

public static SubLSymbol $seconds_in_an_even_millennium$

$int0$31622400

public static final SubLInteger $int0$31622400

$int1$31536000

public static final SubLInteger $int1$31536000

$int2$604800

public static final SubLInteger $int2$604800

$int3$86400

public static final SubLInteger $int3$86400

$int4$3600

public static final SubLInteger $int4$3600

$int5$60

public static final SubLInteger $int5$60

$int6$24

public static final SubLInteger $int6$24

$list7

public static final SubLList $list7

$sym8$PROGN

public static final SubLSymbol $sym8$PROGN

$sym9$CTIME

public static final SubLSymbol $sym9$CTIME

$sym10$CSETQ

public static final SubLSymbol $sym10$CSETQ

$sym11$TRUNCATE

public static final SubLSymbol $sym11$TRUNCATE

$sym12$_

public static final SubLSymbol $sym12$_

$list13

public static final SubLList $list13

$int14$31

public static final SubLInteger $int14$31

$int15$23

public static final SubLInteger $int15$23

$int16$59

public static final SubLInteger $int16$59

$sym17$TIME_FROM_NOW

public static final SubLSymbol $sym17$TIME_FROM_NOW

$list18

public static final SubLList $list18

$sym19$UNIVERSAL_TIME_P

public static final SubLSymbol $sym19$UNIVERSAL_TIME_P

$str20$

public static final SubLString $str20$

$str21$_a__6__0D

public static final SubLString $str21$_a__6__0D

$str22$_a__6__0D__3__0D

public static final SubLString $str22$_a__6__0D__3__0D

$int23$1000

public static final SubLInteger $int23$1000

$str24$mm_dd_yyyy_hh_mm_ss

public static final SubLString $str24$mm_dd_yyyy_hh_mm_ss

$str25$_D_2__0D_2__0D_2__0D_2__0D_2__0D

public static final SubLString $str25$_D_2__0D_2__0D_2__0D_2__0D_2__0D

$sym26$NON_NEGATIVE_NUMBER_P

public static final SubLSymbol $sym26$NON_NEGATIVE_NUMBER_P

$sym27$NON_NEGATIVE_INTEGER_P

public static final SubLSymbol $sym27$NON_NEGATIVE_INTEGER_P

$str28$_D_second__P

public static final SubLString $str28$_D_second__P

$str29$__

public static final SubLString $str29$__

$str30$F_seconds

public static final SubLString $str30$F_seconds

$str31$_D_hours___D_minute__P

public static final SubLString $str31$_D_hours___D_minute__P

$str32$_D_minute__P__

public static final SubLString $str32$_D_minute__P__

$sym33$DATETIME_STRING_TEMPLATE_P

public static final SubLSymbol $sym33$DATETIME_STRING_TEMPLATE_P

$sym34$NON_WHITESPACE_P

public static final SubLSymbol $sym34$NON_WHITESPACE_P

$str35$_A__A

public static final SubLString $str35$_A__A

$str36$Template__s_is_not_a_valid_dateti

public static final SubLString $str36$Template__s_is_not_a_valid_dateti

$list37

public static final SubLList $list37

$list38

public static final SubLList $list38

$sym39$VALID_DATE_TEMPLATE_CHAR

public static final SubLSymbol $sym39$VALID_DATE_TEMPLATE_CHAR

$str40$hh_mm_ss

public static final SubLString $str40$hh_mm_ss

$str41$hh_mm_ss_mmm

public static final SubLString $str41$hh_mm_ss_mmm

$str42$hh_mm

public static final SubLString $str42$hh_mm

$str43$hh_mm_ss_m

public static final SubLString $str43$hh_mm_ss_m

$str44$hh_mm_ss_mm

public static final SubLString $str44$hh_mm_ss_mm

$sym45$NON_DATE_TIME_WHITESPACE_P

public static final SubLSymbol $sym45$NON_DATE_TIME_WHITESPACE_P

$sym46$VALID_YEAR_TOKEN

public static final SubLSymbol $sym46$VALID_YEAR_TOKEN

$sym47$VALID_DATE_SEPARATOR

public static final SubLSymbol $sym47$VALID_DATE_SEPARATOR

$int48$100

public static final SubLInteger $int48$100

$sym49$VALID_MONTH_TOKEN

public static final SubLSymbol $sym49$VALID_MONTH_TOKEN

$sym50$VALID_DAY_TOKEN

public static final SubLSymbol $sym50$VALID_DAY_TOKEN

$str51$Template_or_template_portion__S_d

public static final SubLString $str51$Template_or_template_portion__S_d

$str52$_

public static final SubLString $str52$_

$str53$__0D

public static final SubLString $str53$__0D

$str54$_2__0D__2__0D__2__0D

public static final SubLString $str54$_2__0D__2__0D__2__0D

$str55$_2__0D__2__0D

public static final SubLString $str55$_2__0D__2__0D

$str56$_2__0D__2__0D__2__0D__3__0D

public static final SubLString $str56$_2__0D__2__0D__2__0D__3__0D

$str57$_2__0D__2__0D__2__0D__2__0D

public static final SubLString $str57$_2__0D__2__0D__2__0D__2__0D

$str58$_2__0D__2__0D__2__0D__1__0D

public static final SubLString $str58$_2__0D__2__0D__2__0D__1__0D

$str59$Template_or_template_portion__A_w

public static final SubLString $str59$Template_or_template_portion__A_w

$str60$The_template__S_doesn_t_match_the

public static final SubLString $str60$The_template__S_doesn_t_match_the

$str61$Template_or_template_portion__A_w

public static final SubLString $str61$Template_or_template_portion__A_w

$str62$The_date_string__A_and_the_templa

public static final SubLString $str62$The_date_string__A_and_the_templa

$kw63$EOF

public static final SubLSymbol $kw63$EOF

$str64$Template_or_template_portion__A_d

public static final SubLString $str64$Template_or_template_portion__A_d

$list65

public static final SubLList $list65

$str66$The_template__A_is_not_a_recogniz

public static final SubLString $str66$The_template__A_is_not_a_recogniz

$str67$The_time_string__A_and_the_templa

public static final SubLString $str67$The_time_string__A_and_the_templa

$list68

public static final SubLList $list68

$list69

public static final SubLList $list69

$str70$__A_day_A

public static final SubLString $str70$__A_day_A

$str71$s

public static final SubLString $str71$s

$str72$__A_hour_A

public static final SubLString $str72$__A_hour_A

$str73$__A_minute_A

public static final SubLString $str73$__A_minute_A

$sym74$DOUBLE_FLOAT

public static final SubLSymbol $sym74$DOUBLE_FLOAT

$str75$__A_second_A

public static final SubLString $str75$__A_second_A

$str76$_0_seconds

public static final SubLString $str76$_0_seconds

$sym77$ELAPSED_SECONDS_STRING

public static final SubLSymbol $sym77$ELAPSED_SECONDS_STRING

$list78

public static final SubLList $list78

$sym79$UNIVERSAL_DATE_P

public static final SubLSymbol $sym79$UNIVERSAL_DATE_P

$sym80$INTEGERP

public static final SubLSymbol $sym80$INTEGERP

$int81$10000

public static final SubLInteger $int81$10000

$sym82$PLUSP

public static final SubLSymbol $sym82$PLUSP

$str83$_2__0d__2__0d__4__0d

public static final SubLString $str83$_2__0d__2__0d__4__0d

$str84$_2__0d__2__0d__d

public static final SubLString $str84$_2__0d__2__0d__d

$str85$_2__0d__2__0d___d

public static final SubLString $str85$_2__0d__2__0d___d

$kw86$FLOAT

public static final SubLSymbol $kw86$FLOAT

$kw87$INTEGER

public static final SubLSymbol $kw87$INTEGER

$list88

public static final SubLList $list88

$sym89$_JULIAN_OFFSETS_

public static final SubLSymbol $sym89$_JULIAN_OFFSETS_

$list90

public static final SubLList $list90

$int91$235959

public static final SubLInteger $int91$235959

$str92$second__S_not_in_the_range_0_59

public static final SubLString $str92$second__S_not_in_the_range_0_59

$str93$minute__S_not_in_the_range_0_59

public static final SubLString $str93$minute__S_not_in_the_range_0_59

$str94$hour__S_not_in_the_range_0_59

public static final SubLString $str94$hour__S_not_in_the_range_0_59

$sym95$UNIVERSAL_SECOND_P

public static final SubLSymbol $sym95$UNIVERSAL_SECOND_P

$str96$_2__0d__2__0d__2__0d

public static final SubLString $str96$_2__0d__2__0d__2__0d

$int97$999

public static final SubLInteger $int97$999

$str98$second__S_not_in_the_range_0_999

public static final SubLString $str98$second__S_not_in_the_range_0_999

$str99$_2__0d__2__0d__2__0d__3__0d

public static final SubLString $str99$_2__0d__2__0d__2__0d__3__0d

$int100$1000000

public static final SubLInteger $int100$1000000

$int101$100000000

public static final SubLInteger $int101$100000000

$int102$10000000000

public static final SubLInteger $int102$10000000000

$str103$MM_DD_YY_adjust_problem___s__s__s

public static final SubLString $str103$MM_DD_YY_adjust_problem___s__s__s

$int104$400

public static final SubLInteger $int104$400

$list105

public static final SubLList $list105

$list106

public static final SubLList $list106

$list107

public static final SubLList $list107

$sym108$ABBREVIATION_FOR_MONTH_NUMBER

public static final SubLSymbol $sym108$ABBREVIATION_FOR_MONTH_NUMBER

$list109

public static final SubLList $list109

$str110$_

public static final SubLString $str110$_

$str111$__

public static final SubLString $str111$__

$str112$_2__0D__2__0D__2__0D__2__0D__2__0

public static final SubLString $str112$_2__0D__2__0D__2__0D__2__0D__2__0

$str113$_D_day__P__D__2__0D__2__0D

public static final SubLString $str113$_D_day__P__D__2__0D__2__0D

$str114$_D__2__0D__2__0D

public static final SubLString $str114$_D__2__0D__2__0D

$str115$_D__2__0D

public static final SubLString $str115$_D__2__0D

$int116$3155760000

public static final SubLInteger $int116$3155760000

$int117$31556908800

public static final SubLInteger $int117$31556908800

$int118$31556995200

public static final SubLInteger $int118$31556995200
Method Detail

universal_time_seconds_from_now

public static final SubLObject universal_time_seconds_from_now(SubLObject seconds,
                                                               SubLObject reference_time)
Returns:
universal-time-p; the universal time SECONDS from REFERENCE-TIME.

time_from_now

public static final SubLObject time_from_now(SubLObject seconds)
Legacy function name.


timestring

public static final SubLObject timestring(SubLObject universal_time)
TIMESTRING returns a string in the format mm/dd/yyyy hh:mm:ss from the universal time given. If none is given, the current time is used.


timestring_int

public static final SubLObject timestring_int(SubLObject universal_time)

encode_timestring

public static final SubLObject encode_timestring(SubLObject second,
                                                 SubLObject minute,
                                                 SubLObject hour,
                                                 SubLObject date,
                                                 SubLObject month,
                                                 SubLObject year)

universal_timestring

public static final SubLObject universal_timestring(SubLObject universal_time)
UNIVERSAL-TIMESTRING returns a string in the format yyyymmddhhmmss from the universal time given. If none is given, the current time is used.


encode_universal_timestring

public static final SubLObject encode_universal_timestring(SubLObject second,
                                                           SubLObject minute,
                                                           SubLObject hour,
                                                           SubLObject date,
                                                           SubLObject month,
                                                           SubLObject year)

internal_real_time_p

public static final SubLObject internal_real_time_p(SubLObject object)
Return T iff OBJECT is an internal real time.


elapsed_internal_real_time

public static final SubLObject elapsed_internal_real_time(SubLObject reference_time,
                                                          SubLObject comparison_time)
Return the number of elapsed internal real time units from COMPARISON-TIME to REFERENCE-TIME.


elapsed_internal_real_time_to_elapsed_seconds

public static final SubLObject elapsed_internal_real_time_to_elapsed_seconds(SubLObject elapsed)

encode_datetime_string_from_template

public static final SubLObject encode_datetime_string_from_template(SubLObject millisecond,
                                                                    SubLObject second,
                                                                    SubLObject minute,
                                                                    SubLObject hour,
                                                                    SubLObject day,
                                                                    SubLObject month,
                                                                    SubLObject year,
                                                                    SubLObject template)
Returns a string in the format specified by TEMPLATE representing the datetime having the stated values for MILLISECOND, SECOND, MINUTE, HOUR, DAY, MONTH, YEAR.

Parameters:
MILLISECOND -
SECOND -
MINUTE -
HOUR -
DAY -
MONTH -
YEAR -
TEMPLATE - datetime-string-template-p
Returns:
stringp

valid_date_template_char

public static final SubLObject valid_date_template_char(SubLObject v_char)

valid_date_separator

public static final SubLObject valid_date_separator(SubLObject v_char)

valid_year_token

public static final SubLObject valid_year_token(SubLObject v_char)

valid_month_token

public static final SubLObject valid_month_token(SubLObject v_char)

valid_day_token

public static final SubLObject valid_day_token(SubLObject v_char)

date_template_p

public static final SubLObject date_template_p(SubLObject template)

time_template_p

public static final SubLObject time_template_p(SubLObject template)

n_digit_template_element_p

public static final SubLObject n_digit_template_element_p(SubLObject template,
                                                          SubLObject n,
                                                          SubLObject token_checker,
                                                          SubLObject separator_checker)

encode_date_from_template

public static final SubLObject encode_date_from_template(SubLObject day,
                                                         SubLObject month,
                                                         SubLObject year,
                                                         SubLObject template)

encode_next_date_element

public static final SubLObject encode_next_date_element(SubLObject day,
                                                        SubLObject month,
                                                        SubLObject year,
                                                        SubLObject template,
                                                        SubLObject elem_length,
                                                        SubLObject item)

encode_time_from_template

public static final SubLObject encode_time_from_template(SubLObject millisecond,
                                                         SubLObject second,
                                                         SubLObject minute,
                                                         SubLObject hour,
                                                         SubLObject template)

decode_elapsed_seconds

public static final SubLObject decode_elapsed_seconds(SubLObject elapsed_seconds)
Decode ELAPSED-SECONDS into 4 return values: seconds minutes hours elapsed-days


universal_date_p

public static final SubLObject universal_date_p(SubLObject object)
Return T iff OBJECT is a valid universal date.


get_universal_date

public static final SubLObject get_universal_date(SubLObject universal_time,
                                                  SubLObject time_zone)
Return the current date as an integer, i.e. 19660214


encode_universal_date

public static final SubLObject encode_universal_date(SubLObject day,
                                                     SubLObject month,
                                                     SubLObject year)
encode DAY MONTH YEAR in a universal date integer of the form yyyymmdd


universal_second_p

public static final SubLObject universal_second_p(SubLObject object)
Return T iff OBJECT is a valid universal second.


get_universal_second

public static final SubLObject get_universal_second(SubLObject universal_time)
Return the current second within the day as an integer in HHMMSS form, i.e. 235959


encode_universal_second

public static final SubLObject encode_universal_second(SubLObject second,
                                                       SubLObject minute,
                                                       SubLObject hour)
encode SECOND MINUTE HOUR in a universal second integer of the form HHMMSS


get_utc_time_with_milliseconds

public static final SubLObject get_utc_time_with_milliseconds()
Returns the current utc time with millisecond accuracy, taking into account the platform-specfic implementations of get-internal-real-time.


elapsed_time_abbreviation_string

public static final SubLObject elapsed_time_abbreviation_string(SubLObject elapsed_seconds)

declare_numeric_date_utilities_file

public static final SubLObject declare_numeric_date_utilities_file()

init_numeric_date_utilities_file

public static final SubLObject init_numeric_date_utilities_file()

setup_numeric_date_utilities_file

public static final SubLObject setup_numeric_date_utilities_file()

declareFunctions

public void declareFunctions()
Description copied from interface: SubLFile
Declares the mapping between functions and symbols for all named functions defined in the file. Like CRTL define.


initializeVariables

public void initializeVariables()
Description copied from interface: SubLFile
Initializes all global variables and private internal variables for constants defined in the file. Like CRTL init.


runTopLevelForms

public void runTopLevelForms()
Description copied from interface: SubLFile
Runs all top-level forms in order. Like CRTL setup.