, . owes_money(bob, 500, 0, 3). , bob , .
: get_time(-Time). :
convert_time(+Time, -String)
convert_time(+Time, -Year, -Month, -Day, -Hour, -Minute, -Second, -MilliSeconds)
, , .
- owes_money :
owes_money(bob, 500, 0, 2010, 3, 10). %2010 for the year, 3 for the month ...
:
get_time(X), convert_time(X, CurrYear, CurrMonth, CurrDay, _, _, _, _).%CurrYear will give you current year, etc ... . You don't need the hour minutes etc .. that why are the _
CurrYear, CurrMonth CurrDay , owes_money, , .
, !