GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Download
  • News
  • Community
  • Resources
  • Language Reference
  • SmallBASIC Manual

This view

  • Original page
  • New address

GeezerVison is showing smallbasic.github.io — SmallBASIC | JULIAN

Edit History

JULIAN

j = JULIAN (dmy | (d,m,y))

Home > Reference > Date

Returns the Julian date. Dates must be greater than 1/1/100 AD. The date can be passed as the string dmy with the format DD/MM/YYYY. Alternatively the date can be given by specificing the parameters d for days, m for months and y for years.

Example 1: Basic usage

PRINT Julian("31/12/2001")
PRINT Julian(31, 12, 2001)
PRINT Julian(DATE)

Example 2: Difference in days between two dates

today = Julian(Date())
past = Julian(31, 12, 2001)
print today - past; " days past since 31/12/2001"
Code samples using JULIAN
pregnancy calculator.bas  
Date
DATE   DATEDMY   DATEFMT   JULIAN   TICKS   TIME   TIMEHMS   TIMER   TIMESTAMP   WEEKDAY  
This page was last edited on Fri, 21 Apr 2023 12:32:50 +0200 | Markdown processed with pandoc 3.1.12.1
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.