Generic FunctionPackage: util.date-timeToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

date-time-ymd-yd-century

Arguments: date-time

Returns the value in the ymd-yd-century (the century in calendar date and ordinal date calendars) slot of date-time, which must be a date-time object. The value is nil if the slot is not set. Otherwise it is an integer. This value cannot be changed with setf and this function. See also date-time-ywd-century.

This value cannot be changed with setf and this function.

(require :datetime)
(use-package :util.date-time)

;; date-time is 1985/04/12 10:15:30, that is 15 and a half
;; minutes after 10 AM April 12, 1985.
(setq a (date-time "1985-04-12T10:15:30"))
(date-time-ymd-yd-century a) -> 19
(setq a1 (date-time "85102T235030"))  ;; no century specified
(date-time-ymd-yd-century a1) -> nil

See date-time.htm for information on support in Allegro CL for parsing and generating time expressions using the ISO 8601 standard.


Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version