www.delorie.com/gnu/docs/gcal/gcal_66.html   search  
 
Buy GNU books!


Gcal 3.01

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

G.2.1.11 Difference value %[format]?[date] special texts

The following difference value %[format]?[date] special texts are respected:

%ydate
Is replaced by a year difference value, e.g.:

The text `Sylvester 1912 is %y1912 years ago' will be expanded to
==> `Sylvester 1912 is -82 years ago', in case the year of the actual system date is 1994.

%B[date]
Is replaced by an age value, e.g.:

The text `My %B1962 birthday%i1952#2062' will be expanded to
==> `My 32 birthday', in case the year of the actual system date is 1994.

Those age values are only displayed, if the computation of an age value is greater zero. The fixed date warning in preceding example is displayed only in case the current year is greater than 1952 and less than 2062.

%>1&*B[date]
Is replaced by an age value with trailing Ordinal Number suffix, e.g.:

The text `My %>1&*B1962 birthday%i1952#2062' will be expanded to
==> `My 32nd birthday', in case the year of the actual system date is 1994.

Those age values are only displayed, if the computation of an age value is greater zero. The fixed date warning in preceding example is displayed only in case the current year is greater than 1952 and less than 2062.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003