HK Components

================================================================================

HK_date

DATE_agetext

This method calculats a literal string to represent the relative age of a date. it returns words like "yesterday", "next month" or "last year"

Call

agetext := DATE_agetext(date{;add code})

Parameters

$1 -> date the date to get the age of
$1 -> boolean prefix the resulting string with a numeric code for sorting? Defaults to FALSE
$0 <- text the literal representing the realtive date

Example

GET DOCUMENT PROPERTIES ("MyOldFile.txt"; $b_lock; $b_invisible; $d_created; $h_created; $d_modified; $h_modified)
$t_relage:=DATE_agetext($d_modified)
ALERT("Last time this file was modified: "+$t_relage)
--------------------------------------------------------------------------------

Pricing

All current components are donationware in their compiled form, please use the donate button below to give what you think it's worth via paypal.

You can buy the sourcecode to the components. AC_Basics is free, but the source for all other components is 100 U$/€ via PayPal. You will receive the password to the archive contained in the component as soon as I receive the email from paypal confirming payment. Please make sure to call the payment button from the webpage of the desired component, so I know what you want to pay for. I can send an invoice by mail if you so require, EU corporate entities may provide a VAT ID in the message of their PayPal payments so I can deduct the VAT.

Thanks a lot

========================

Current version

0.9 - 2009.02.27
========================