Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tUtils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Digital Twin
Twinzo
tUtils
Commits
6716aea8
Commit
6716aea8
authored
3 years ago
by
Patrik Paško
Browse files
Options
Downloads
Patches
Plain Diff
- ToUnixTimestamp method
parent
e729b507
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Develop
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tUtils/Class1.cs
+0
-8
0 additions, 8 deletions
tUtils/Class1.cs
tUtils/Utils.cs
+13
-0
13 additions, 0 deletions
tUtils/Utils.cs
with
13 additions
and
8 deletions
tUtils/Class1.cs
deleted
100644 → 0
+
0
−
8
View file @
e729b507
using
System
;
namespace
tUtils
{
public
class
Class1
{
}
}
This diff is collapsed.
Click to expand it.
tUtils/Utils.cs
0 → 100644
+
13
−
0
View file @
6716aea8
using
System
;
namespace
tUtils
{
public
static
class
Utils
{
public
static
long
ToUnixTimestamp
(
this
DateTime
date
)
{
TimeSpan
span
=
(
date
.
ToUniversalTime
()
-
new
DateTime
(
1970
,
1
,
1
,
0
,
0
,
0
,
0
,
DateTimeKind
.
Utc
));
return
(
long
)
span
.
TotalMilliseconds
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment