Anytime Help Center

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Support
  • Guest
  • Log In
English (US)
US English (US)
DE German
CN Chinese
MX Spanish (Mexico)
Chinese (Simplified)
  • AKG
    Microphones Wireless Integrated Systems Automatic Mixers Headphones Discontinued Products (AKG) General AKG Inquiries Certifications (AKG)
  • AMX
    Networked A/V Distribution (AVoIP) Traditional A/V Distribution Video Signal Processing Architectural Connectivity User Interfaces Control Processing Power (AMX) Programming (AMX) Software (AMX) Discontinued Products (AMX) General AMX Inquiries Certifications (AMX)
  • BSS
    Soundweb™ Omni Soundweb™ London Soundweb™ Contrio™ Software (BSS) Discontinued Products (BSS) General BSS Inquiries Certifications (BSS)
  • Crown
    CDi DriveCore Series CDi Series Commercial Series ComTech Series DCi DriveCore Series I-Tech HD Series XLC series XLi Series XLS DriveCore 2 Series XTi 2 Series Discontinued Products (Crown) Software (Crown) General Crown Inquiries Certifications (Crown) Video Manual Series (Crown)
  • dbx
    CX Series 500 Series DriveRack Personal Monitor Control ZonePRO Zone Controllers FeedBack Suppression Microphone Preamps Dynamics Processors Crossovers Equalizers Software (dbx) Discontinued Products (dbx) General dbx Inquiries Certifications (dbx)
  • Flux::
    Immersive Processing Analysis Subscriptions General FLUX: Inquiries
  • JBL
    Cinema Sound Installed Live Portable Tour Sound Recording & Broadcast Software (JBL) Discontinued Products (JBL) Video Manual Series (JBL) General JBL Inquiries Certifications (JBL)
  • Lexicon
    Plugins Effects Processors Cinema Discontinued Products (Lexicon) Video Manual Series (Lexicon) General Lexicon Inquiries Certifications (Lexicon)
  • Martin
    Atomic ELP ERA Exterior MAC P3 VC VDO Tools Discontinued Products (Martin) General Martin Inquiries Certifications (Martin)
  • Soundcraft
    Digital Analog Connected Analog Only Discontinued Products (Soundcraft) Video Manual Series (Soundcraft) General Soundcraft Inquiries Certifications (Soundcraft)
  • General HARMAN Inquiries
    Dante
+ More
  • Home
  • AMX
  • Programming (AMX)
  • Programming

Netlinx Astronomical Clock

Technical Support Guide

Written by Wesley Moore

Updated at April 6th, 2026

Table of Contents

Brand: Models: ​Netlinx Astro_Clock Example Astro Clock Syntax Parameters Result

Brand:

  • AMX

Models:

  • Programming
    • Netlinx

​Netlinx Astro_Clock Example

Sometimes you may wish to know the time of sunrise and sunset, this example will show you how this is done in Netlinx. Astro_Clock.AXW included in this guide.

Download Astro Clock AXW Example

Astro Clock

This routine calculates the time of sunset and sunrise at a specified location (specified by longitude and latitude) on a specified date.

Syntax

SINTEGER ASTRO_CLOCK(DOUBLE Longitude,DOUBLE Latitude,DOUBLE HoursFromGMT,CHAR[] Date,CHAR[] Sunrise,CHAR[] Sunset)

Parameters

Longitude - Longitude in Degrees.  Fraction of Degrees. West longitudes must be negative.
Latitude - Latitude in Degrees.  Fraction of Degrees. South latitudes must be negative.
HoursFromGMT - Number of hours from GMT. Hours West of GMT can be entered as negative (e.g., -5 for EST, -4 for EDT)
Date - In mm/dd/yyyy format.
Sunrise - In 24-hour format. Value gets filled in by the function.
Sunset - In mm/dd/yyyy format. Value gets filled in by the function.

Result

0 = Success
-1 = Latitude Entry Error
-2 = Longitude Entry Error
-3 = Hours Entry Error
-4 = Date Entry Error

 

Related Videos

timekeeper chronometer

Was this article helpful?

Yes
No
Give feedback about this article

Table of Contents

Brand: Models: ​Netlinx Astro_Clock Example Astro Clock Syntax Parameters Result

Related Articles

  • AMX Subroutine Name Length
  • How To Send DGX Shell Commands From NetLinx Code
  • How to use #IF_DEFINED to set pre-compile conditions
  • Using a NetLinx Master to Monitoring a System
  • Using an Active Bargraph to Control Levels by Touching the Bargraph

Related Articles

  • AMX Subroutine Name Length
  • How To Send DGX Shell Commands From NetLinx Code
  • How to use #IF_DEFINED to set pre-compile conditions
  • Using a NetLinx Master to Monitoring a System
  • Using an Active Bargraph to Control Levels by Touching the Bargraph
Copyright © HARMAN Professional. All rights reserved. Privacy Policy | Terms of Use
Expand