If I have a atom of four numbers, for example, '2002', How I can delete the first and the second numbers, for obtain, in the previous example, '02'?. I have a database of bibliographic records, compound of facts, with the date in format dd/mm/yy, and I need compare the system year with the year of the records in database. But the predicates get_time/2 and convert_time/8, provide the year of the sistem date with four numbers. For this, I want convert the year format in four numbers, to format in two numbers (the two last numbers of the system year).
?- atom_codes('2002', [_,_|_L]), atom_codes(Result, _L).
Result = '02' ?
In any case, a bibliographical database with only two digits for the year does seem to make much sense. Books have been published for centuries.
MCL
________________________________________________________________ [...] put Windows back into its place as an overpriced Nintendo.