Unix Timestamp

Stable Version 1.1.0 (OutSystems 10)
Published on 24 March 2018 by 
Created on 24 March 2018
Details
Simple function that returns current unix timestamp in milliseconds
Read More

Add dependences to your project

The logic

Integration Studio:

Code:

using System;
using System.Collections;
using System.Data;
using OutSystems.HubEdition.RuntimePlatform;
using OutSystems.RuntimePublic.Db;

namespace OutSystems.NssUnixTimestamp {

public class CssUnixTimestamp: IssUnixTimestamp {

/// <summary>
///  This exension converts unix timestamp of current moment in milliseconds
/// </summary>
/// <param name="ssResult"></param>
public void MssReturnUnixTimestamp(out string ssResult) {
            var Timestamp = (long)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalMilliseconds;
                ssResult = Timestamp.ToString();
} // MssReturnUnixTimestamp


} // CssUnixTimestamp

}
 // OutSystems.NssUnixTimestamp

Reviews (0)
Category
Components, UI & Widgets
Tags
Support Options
This component is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from Mart Potter who created this component.
Dependencies
Unix Timestamp has no dependencies.
Requirements
Platform
10.0.0.402
Database
All
Stack
.NET
Component Consumers
No consumers yet.
Weekly Downloads