Handling Date Strings
Although DOORS prints dates correctly, there is no easy way to create a date string in a specified format within DXL. These utilities return date strings in long format DD Month YYYY and DD Month YYYY HH:MM respectively.
Usage:
string getDateString(Date d) string getDateAndTimeString(Date d)
Example:
Date d = dateOf(intOf(today)) print d "\n" print getDateString(d) "\n" print getDateAndTimeString(d) "\n"
Chomsky Random Sentence Generator
This include file implements a utility function, getRandomText(), to return a random sentence. The sentence returned is a proper English sentence, but is of course complete jibberish. Such sentences are useful for creating test data.