This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Converts a windows FILETIME structure to a POSIX timestamp | |
// https://www.frenk.com/2009/12/convert-filetime-to-unix-timestamp/ | |
LONGLONG FileTime_to_POSIX(FILETIME ft) | |
{ | |
// takes the last modified date | |
LARGE_INTEGER date, adjust; | |
date.HighPart = ft.dwHighDateTime; | |
date.LowPart = ft.dwLowDateTime; | |
// 100-nanoseconds = milliseconds * 10000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ThrowingMathematicalOperators.swift | |
// Dose | |
// | |
// Created by Pho Hale on 6/26/18. | |
// Copyright © 2018 Pho Hale. All rights reserved. | |
// | |
import Darwin | |
import Swift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder