datime/1 in library(system) will do what you want, something like:
%% test.pl BEGIN
% Ensure datime/1 is available
:- use_module(library(system), [datime/1]).
current_year(Year) :-
datime(datime(Year,_Month,_Day,_H,_M,_S)).
%% test.pl END
You can then call current_year/1, like so:
| ?- current_year(Year), Year >= 2012, write('It is 2012 or later\n').
It is 2012 or later
Year = 2012 ?
yes
| ?-
(Note that variables in Prolog must start with an upper case letter, so currentYear is not a valid variable name.)