Skip to main content
Skip table of contents

DateTime

Overview

Records the build date and time in two const variables

Discussion

This module has no input and output pins. It has two variables, Date and Time, and. these two variables contains the current date in YYMMDD format and time in HHMMSS format respectively. .date is a 32-bit unsigned integer that when viewed in hex, shows 0xYYMMDD00. For example, October 16, 2012 will be: 0x12101600. The .time field is also a 32-bit unsigned integer. The values are packed 0xHHMMSS00 3:35:05 PM is shown as 0x03350500. The module also has third variable, version, which can be used to maintain the version of the system other than Date and Time.

Type Definition

CODE
typedef struct _ModuleDateTime
{
    ModuleInstanceDescriptor instance;            // Common Audio Weaver module instance structure
    INT32 date;                                   // Current date in YYMMDD format.
    INT32 time;                                   // Current time in HHMMSS format.
    INT32 version;                                // Current version of the system.
} ModuleDateTimeClass;

Variables

Properties

Name

Type

Usage

isHidden

Default value

Range

Units

date

int

const

0

random value

Unrestricted

time

int

const

0

random value

Unrestricted

version

int

parameter

0

1

Unrestricted

MATLAB Usage

File Name: date_time_module.m

CODE
 M=date_time_module(NAME)
 Creates a to get date and time of the module when build for the Audio Weaver.  
 The module has two variables to indicate date and time.
 Arguments:
    NAME - name of the module.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.