docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TimeUtility

    Provides Unix-epoch timestamp helpers.

    Inheritance
    object
    TimeUtility
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.SimulationPro
    Assembly: Unity.SimulationPro.Capture.dll
    Syntax
    public static class TimeUtility

    Fields

    UnixEpoch

    The Unix epoch origin: January 1, 1970 00:00:00 UTC.

    Declaration
    public static readonly DateTime UnixEpoch
    Field Value
    Type Description
    DateTime

    Methods

    TimestampUnixEpoch()

    Returns the current UTC time as seconds since the Unix epoch.

    Declaration
    public static int TimestampUnixEpoch()
    Returns
    Type Description
    int

    Integer seconds since January 1, 1970.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)