WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WWWILMuscle

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

WWWILMuscle Extender


WizardWrx WILMuscle Extender

Developer:
David Gray
WizardWrx
http://www.wizardwrx.com/

Here is a summary of its current functions.

FormatNowP6C
Given a format string, such as "^YYYY/^MM/^DD ^hh:^mm:^ss", return the current machine date, formatted according to the text string. In addition to the usual numeric date values, the format string can specify any of the following.

^MMM for three letter month abbreviations.

^MMMM for spelled out month names.

^WWW for three letter weekday abbreviations.

^WW for two letter weekday abbreviations, based on the standard TLAs.

^WWWW for spelled out weekday names.
All month and weekday strings are returned in the local language, using the Windows National Language Subsystem. So, if your system speaks German, today is Freitag. An optional argument, if set to TRUE, causes the function to use UTC time.

FormatYmdHmsP6C
Given a WIL date, in YmdHms format, and a format string, do the same thing for it that FormatNow_P6C does for the machine time.

LogMsgAltP6C
Given a string, possibly including @lf line break markers, and a handle to an open output file, format the string into a log message and write it into the open file. The log message begins with the date and time, formatted as YYYY/MM/DD hh:mm:ss, followed by a single space. Subsequent lines are indented so that the text is aligned under the text of the first line. New lines are denoted by @LF tokens, and they may appear anywhere, even at the beginning or end of the string. If a string begins with a @lf, a blank line is written into the file before the first real line. If the last character is a @lf, a blank line is appended following the last line of text.

FormatLongIntP6C
Format an integer for display in a message or output to a text file. Given an integer (any value that WIL recognizes as an integer), format the integer, according to the national language settings for thousands separator, sign placement, etc. Since this function works only with integers, the decimal place setting is overridden.

ExtractFromYmdHms
Given a WIL date, in YmdHms format, extract a specified item from it.

ExtractrFromSystemDateP6C
Given a flag, specifying whether to use system time (UTC) or local time, and a request number, indicating which part of the time to return, report the requested time element, expressed as either UTC or local time.

GetTimeZoneNameP6C
Query Windows for the name of the time zone in which local times are reported.

MakeFQFNWP6C
Given two strings, the first containing a file name and the second a path, return a fully qualified file name.

PathStringFixupP6C
Given a string containing a path which may, or may not, have a terminating backslash, and a flag to specify whether a terminating backslash is desired, return the path, with or without a trailing backslash, as indicated.

FormatNowP6C
Format the machine date (local or UTC), returning a string defined by a format string, specifying the items to included, the order in which to include them, and other text, such as delimiters, to include.

FormatYmdHMSP6C
Return the specified time, given in the WIL YmdHms format, formatted according to a specification string.

About WizardWrx
A synopsis of the founder and his company.


All functions support UTC and local time, and default to local time.

The package includes a complete help file, colorization codes, and a standard extender setup script. To install, unzip the package into an empty directory and run setup.wbt.

Note that, since this is a dual interface library, the package includes WILMuscle.H, a C/C++ header file. This is installed into your samples directory, along with several library modules used by the included test harness. Two of the modules are intended to be deprecated in favor of the extender.

There is a test. Name the two deprecated modules. Hint: They have a .WIL extension.

[WizardWrx WILMuscle Extender , version 41009]


Article ID:   W16876
File Created: 2019:08:14:08:57:58
Last Updated: 2019:08:14:08:57:58