unix-timestamp

Unix Timestamp

Stable version 1.1.0 (Compatible with OutSystems 11)
Other versions available for 10
Published on 24 March 2018 by 
5.0
 (1 rating)
unix-timestamp

Unix Timestamp

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

What’s new (1.1.0)
Reviews (0)