Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Date and Time Primitives : tint.date-compare

Syntax

#(tint.date-compare,%year1,%month1,%day1,%hour1,%minute1,%second1,
        %year2,%month2,%day2,%hour2,%minute2,%second2)

If the first date (specified by the first six arguments) is less than the second date (specified by the second six arguments), then -1 will be returned. If the first date is greater than the second date, then 1 will be returned. If the first date is equal to the second date, then 0 will be returned.

Example

#(tint.date-compare,#(tint.current-date,(,)),#(tint.current-date,(,)))
0
#(tint.date-compare,#(tint.current-date,(,)),#(tint.date-add,100,(,),#(tint.current-date,(,))))
   
-1