System Time

I am writing an agent to send an email when a new document enters a certain view. I wanted to know if there is an easy way in LotusScript to just return the system time in a string variable, military time preferred?

Subject: System Time

Now function

Returns the current system date and time as a date/time value.

Syntax

Now

Return value

Now returns the current system date and time as a Variant of DataType 7 (Date/Time).

Usage

A date/time value is an eight-byte floating-point value. The integer part represents a serial day counted from the date January 1, 100 AD. The fractional part represents the time as a fraction of a day, measured from midnight on the preceding day.

You can call the function as either Now or Now().

Would that be what you need?

Subject: RE: System Time

Yes, but is there a way to get JUST the time so I can copy it into a string variable?

Subject: RE: System Time

Sure. Create a NotesDateTime object from the output of Now() and retrieve the (String) property of that object, that fits your needs best. Your choices include

.TimeOnly

.GMTTime

.LocalTime

.ZoneTime

Info on what they return is found in Designer help as well.