User Tools

Site Tools


addons:using_libs:ffxi.vanatime

FFXi Vanatime Library

The FFXi Vanatime library exposes functions useful to obtain the current Vana'diel time information.

The following functions are exposed by this library:

number VanaTime.GetRawTimestamp();

  • Parameters
    • Function has no arguments.
  • Returns
    • The raw timestamp value.

string VanaTime.GetCurrentTimestamp();

  • Parameters
    • Function has no arguments.
  • Returns
    • A formatted string of the current Vana'diel time.

table VanaTime.GetCurrentTime();

  • Parameters
    • Function has no arguments.
  • Returns
    • A table containing various time data.
      • The following indexes are: Hour, Minutes, Seconds

number VanaTime.GetCurrentHour();

  • Parameters
    • Function has no arguments.
  • Returns
    • The current Vana'diel hour.

number VanaTime.GetCurrentMinute();

  • Parameters
    • Function has no arguments.
  • Returns
    • The current Vana'diel minute.

number VanaTime.GetCurrentSecond();

  • Parameters
    • Function has no arguments.
  • Returns
    • The current Vana'diel second.

table VanaTime.GetCurrentDate();

  • Parameters
    • Function has no arguments.
  • Returns
    • A table containing various time data.
      • The following indexes are: WeekDay, Day, Month, Year, MoonPercent, MoonPhase

The following values are defined from the vanatime library.

MOONPHASE_NEW               = 0;
MOONPHASE_WAXINGCRESCENT    = 1;
MOONPHASE_WAXINGCRESCENT2   = 2;
MOONPHASE_FIRSTQUARTER      = 3;
MOONPHASE_WAXINGGIBBOUS     = 4;
MOONPHASE_WAXINGGIBBOUS2    = 5;
MOONPHASE_FULL              = 6;
MOONPHASE_WANINGGIBBOUS     = 7;
MOONPHASE_WANINGGIBBOUS2    = 8;
MOONPHASE_LASTQUARTER       = 9;
MOONPHASE_WANINGCRESCENT    = 10;
MOONPHASE_WANINGCRESCENT2   = 11;
MOONPHASE_UNKNOWN           = 12;
WEEKDAY_FIRESDAY            = 0;
WEEKDAY_EARTHSDAY           = 1;
WEEKDAY_WATERSDAY           = 2;
WEEKDAY_WINDSDAY            = 3;
WEEKDAY_ICEDAY              = 4;
WEEKDAY_LIGHTNINGDAY        = 5;
WEEKDAY_LIGHTSDAY           = 6;
WEEKDAY_DARKSDAY            = 7;
WEEKDAY_UNKNOWN             = 8;
addons/using_libs/ffxi.vanatime.txt · Last modified: 2015/11/20 00:36 by atom0s