Documentation

Std.Time.DateTime.Timestamp

Represents an exact point in time as a UNIX Epoch timestamp.

  • val : Duration

    Duration since the unix epoch.

Instances For
    theorem Std.Time.Timestamp.ext {x y : Timestamp} (val : x.val = y.val) :
    x = y
    @[implicit_reducible]
    Instances For
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[implicit_reducible]
      @[extern lean_get_current_time]

      Fetches the current duration from the system.

      @[inline]

      Converts a Timestamp to minutes as Minute.Offset.

      Instances For
        @[inline]

        Converts a Timestamp to days as Day.Offset.

        Instances For
          @[inline]

          Creates a Timestamp from a Second.Offset since the Unix epoch.

          Instances For
            @[inline]

            Creates a Timestamp from a Nanosecond.Offset since the Unix epoch.

            Instances For
              @[inline]

              Creates a Timestamp from a Millisecond.Offset since the Unix epoch.

              Instances For
                @[inline]

                Converts a Timestamp to seconds as Second.Offset.

                Instances For
                  @[inline]

                  Converts a Timestamp to nanoseconds as Nanosecond.Offset.

                  Instances For
                    @[inline]

                    Converts a Timestamp to nanoseconds as Millisecond.Offset.

                    Instances For
                      @[inline]

                      Calculates the duration from the given Timestamp to the current time.

                      Instances For
                        @[inline]

                        Returns the Duration represented by the Timestamp since the Unix epoch.

                        Instances For
                          @[inline]

                          Adds a Millisecond.Offset to the given Timestamp.

                          Instances For
                            @[inline]

                            Subtracts a Millisecond.Offset from the given Timestamp.

                            Instances For
                              @[inline]

                              Adds a Nanosecond.Offset to the given Timestamp.

                              Instances For
                                @[inline]

                                Subtracts a Nanosecond.Offset from the given Timestamp.

                                Instances For
                                  @[inline]

                                  Adds a Second.Offset to the given Timestamp.

                                  Instances For
                                    @[inline]

                                    Subtracts a Second.Offset from the given Timestamp.

                                    Instances For
                                      @[inline]

                                      Adds a Minute.Offset to the given Timestamp.

                                      Instances For
                                        @[inline]

                                        Subtracts a Minute.Offset from the given Timestamp.

                                        Instances For
                                          @[inline]

                                          Adds an Hour.Offset to the given Timestamp.

                                          Instances For
                                            @[inline]

                                            Subtracts an Hour.Offset from the given Timestamp.

                                            Instances For
                                              @[inline]

                                              Adds a Day.Offset to the given Timestamp.

                                              Instances For
                                                @[inline]

                                                Subtracts a Day.Offset from the given Timestamp.

                                                Instances For
                                                  @[inline]

                                                  Adds a Week.Offset to the given Timestamp.

                                                  Instances For
                                                    @[inline]

                                                    Subtracts a Week.Offset from the given Timestamp.

                                                    Instances For
                                                      @[inline]

                                                      Adds a Duration to the given Timestamp.

                                                      Instances For
                                                        @[inline]

                                                        Subtracts a Duration from the given Timestamp.

                                                        Instances For