LogoLogo
Version 3
Version 3
  • Version 3
  • Welcome to Flying Logic 3
  • Flying Logic Resources
  • Recommended Reading
  • Flying Logic 3 User Guide
    • Getting Started
    • What's New
    • Reader Mode
    • The Document Window
    • Constructing Graphs
    • Graph Logic
    • Domains
    • Chart View
    • Scripting
    • Menus
    • Keyboard Shortcuts
    • Preferences
    • Project Management
  • Flying Logic 3 Scripting Guide
    • Getting Started
    • Online Resources
    • Predefined Variables
    • Classes
      • Application
      • CalendarEvent
      • Color
      • Date
      • Document
      • Domain
      • Edge
      • EntityClass
      • Entity
      • FontSpec
      • GraphElemFilter
      • GraphElem
      • GraphOperator
      • Group
      • Junctor
      • LayoutLine
      • Resource
      • Symbol
      • TextEditor
      • VertexElem
      • VertexOperator
      • Workweek
    • Constants
    • Graphic Symbol Names
    • Importer and Exporter Examples
    • Flying Logic Document Format
  • Thinking with Flying Logic
    • Part I: Introduction
    • About This Book
    • Keys to Great Thinking
    • Part II: The Theory of Constraints Thinking Processes
    • Overview of the Theory of Constraints
    • The Categories of Legitimate Reservation
    • Current Reality Tree
    • Evaporating Cloud: Conflict Resolution
    • Future Reality Tree
    • Prerequisite Tree
    • Transition Tree
    • Strategy & Tactics Tree
    • Part III: Other Techniques
    • Evidence-Based Analysis
    • Concept Maps
Powered by GitBook
On this page
  • Fields
  • Methods

Was this helpful?

  1. Flying Logic 3 Scripting Guide
  2. Classes

Date

The Date class represents a day of the year. Date instances are immutable. The constructors are accessible from scripts.

Fields

Field

Type

Description

day

integer

Read only. The day, from 1 to 31.

month

integer

Read only. The month, from 0 to 11.

year

integer

Read only. The year.

weekday

integer

Read only. The day of the week, from 0 to 6.

daysFromSunday

integer

Read only. The day of the week as a difference from Sunday: 0 for Sunday, 1 for Monday, etc.

Methods

init( )

Constructs a new Date instance for the current date.

init( year, month, day )

Constructs a new Date instance for the given year, month and day.

equals( object )

Returns True if object represents the same date as self.

compareTo( date )

Returns 0 if the date represented by the argument is equal to the date represented by this Date, less than 0 if the date of this Date is before the date represented by the argument, and greater than 0 if the date of this Calendar is after the date represented by the argument.

addDays( days )

Returns a new Date instance representing a date with the given number of days added to the date represented by this Date. The argument days can be negative.

addDays( workdays, workweek )

PreviousColorNextDocument

Last updated 1 year ago

Was this helpful?

Returns a new Date instance representing a date with the given number of workdays added to the date represented by this Date and properly considering the represented by the parameter workweek. The argument workdays can be negative.

Workweek