Unix timestamp generators.

A set of functions to help with generating random unix-timestamp values. Generators can return a single value or grouped values using arrays and matrix.


_rndmTimestamp()

Generate a random unix timestamp value.

  • Name
    year
    Type
    int
    Description

    Set a custom year, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    month
    Type
    int
    Description

    Set a custom month, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    day
    Type
    int
    Description

    Set a custom day, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    hour
    Type
    int
    Description

    Set a custom hour, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    minute
    Type
    int
    Description

    Set a custom minute, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    second
    Type
    int
    Description

    Set a custom second, instead of random value. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    returns
    Type
    int
    Description

    A random unix timestamp value.


_rndmTimestampArray()

Generate a random integer array of unix timestamp values.

  • Name
    size
    Type
    int
    Description

    The size of the array. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    year
    Type
    int
    Description

    Set a custom year, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    month
    Type
    int
    Description

    Set a custom month, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    day
    Type
    int
    Description

    Set a custom day, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    hour
    Type
    int
    Description

    Set a custom hour, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    minute
    Type
    int
    Description

    Set a custom minute, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    second
    Type
    int
    Description

    Set a custom second, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    returns
    Type
    array<int>
    Description

    A random integer array of unix timestamp values.


_rndmTimestampMatrix()

Generate a random integer matrix of unix timestamp values.

  • Name
    rows
    Type
    int
    Description

    Total row size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    columns
    Type
    int
    Description

    Total column size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.

  • Name
    year
    Type
    int
    Description

    Set a custom year, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    month
    Type
    int
    Description

    Set a custom month, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    day
    Type
    int
    Description

    Set a custom day, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    hour
    Type
    int
    Description

    Set a custom hour, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    minute
    Type
    int
    Description

    Set a custom minute, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    second
    Type
    int
    Description

    Set a custom second, instead of random values. By default its set to 0, which implies random. Optional. The default is 0.

  • Name
    returns
    Type
    matrix<int>
    Description

    A random integer matrix of unix timestamp values.