age(+BYear, +BMonth, +BDay, +Year, +Month, +Day, ?Age) [more]

Calculate the age in years of something using a birthdate and another date.

day_number(+Year, +Month, +Day, ?DayNumber) [more]

Calculate the day number of the specified Year, Month and Day. The DayNumber is equal to the number of days since 1-1 of that same Year.

day_of_week(+DateNumber, ?DayOfWeek) [more]

Determine the day-of-week number for a specified DateNumber.

decode_date(+DateNumber, ?Year, ?Month, ?Day) [more]

Convert the date number to a year, month and day specification.

decode_datetime(date_time(+DateNumber, +TimeNumber), ?Year, ?Month, ?Day, ?Hour, ?Min, ?Sec) [more]

Convert the date- and time numbers  to Year, Month, Day, Hour, Min and Sec values.

decode_time(+TimeNumber, ?Hour, ?Min, ?Sec) [more]

Convert a time number back to Hour, Minutes and Seconds values

encode_date(+Year, +Month,  +Day, ?DateNumber) [more]

Convert the date Year, Month and Day to a date number.

encode_datetime(+Year, +Month, +Day, +Hour, +Min, +Sec, date_time(?DateNumber, ?TimeNumber)) [more]

Convert the date and time specification to date- and time numbers.

encode_time(+Hour, ?TimeNumber) [more]

Calculate the time number for the specified hour.

encode_time(+Hour, +Min, ?TimeNumber) [more]

Calculate the time number for the specified hour and minute.

encode_time(+Hour, +Min, +Sec, ?TimeNumber) [more]

Calculate the time number for the specified hour, minute and second.

first_week(+Year, ?DateNumber) [more]

Calculate the daynumber for the SUNDAY of the first week of the specified year.

leap_year(+Year) [more]

Determine if the specified year is a leap year or not.

length_month(+Year, +Month, ?Days) [more]

Determine the number of days of a certain month.

monday_of_week(+Year, +WeekNumber, ?DateNumber) [more]

Calculate the date number for a Monday of a week in a year.

monday_of_week(+Year, +WeekNumber, ?OutYear, ?OutMonth, ?OutDay) [more]

Calculate the date for a Monday of a week in a year.

next_week(+Year, +WeekNumber, ?NextYear, ?NextWeek) [more]

Calculate the week number for the next week.

num_weeks_in_year(+Year, ?NumWeeks) [more]

Calculate the number of weeks in a year.

prev_week(+Year, +WeekNumber, ?PrevYear, ?PrevWeek) [more]

Calculate the week number for the previous week.

reverse_day_number(+Year, +DayNumber, ?Month, ?Day) [more]

Calculate the month and day from a specified day number. The day number is  the number of days since 1-1 of the same Year.

start_of_week(+Year, +WeekNumber, ?DateNumber) [more]

Calculate the date number for a specified week of a year.

 

info@trinc-prolog.com