facebook twitter google+ linkedin reddit delicious stumbleupon

DateTime.so

Gang stalking electronic harassment implants website sharing buttons gang stalking electronic harassment implants

gsehi.com > Computing > Software > Mac OS > DateTime.so

Date time Finder icon

ZIP file icon Download DateTime.so (StuffIt X, 1.3 K)

Purpose

Some date and time functions of PLT-Scheme 1.0.1 are very slow compared to the built-in functions of the Mac OS.

This extension replaces these functions with the fastest solution.

Limitations

The dates and times will be displayed like you chose in the Date & Time control panel.

Background

It was written in C.

It’s PPC code.

Use

Copy DateTime.so to the same folder as your source code and open the source code in DrScheme.

The extension replaces find-seconds and introduces 3 new functions:

  1. seconds->date-string
  2. seconds->time-string
  3. seconds->date-time-string

Examples

Example 1

Date time example

DateTime.ss:

(load-extension "CurrentSeconds.so")
(load-extension "DateTime.so")

(define now (current-seconds))
(seconds->date-string now)
(seconds->time-string now)
(seconds->date-time-string now)

(define tomorrow (find-seconds 1 2 3 28 1 2011))
(seconds->date-time-string tomorrow)

Result:

"donderdag, 27 januari 2011"
"2:35:54"
"donderdag, 27 januari 2011, 2:35:54"
"vrijdag, 28 januari 2011, 3:02:01"

Disclaimer

This software is provided as is. There is no guarantee whatsoever. I will under no circumstance accept any liability for possible damage.

This software is licensed to you, for your own use. This is copyrighted software. You are not obtaining title to the software or any copyright rights. You may not sublicense, rent, lease, convey, modify, translate, convert to other programming languages, decompile, or disassemble this software for any purpose.

You may make as many copies of this software as you need for back-up purposes. In addition, you may use this program on more than one computer.

I disclaim all warranties relating to this software, whether expressed or implied, including but not limited to any implied warranties of merchantability and fitness for a particular purpose, and all such warranties are expressly and specifically disclaimed. I will never be liable for any indirect, consequential, or incidental damages arising out of the use or inability to use such software even if I have been advised of the possibility of such damages or claims. In no event shall my liability for any damages ever exceed the price paid for the license to use the software, regardless of the form of the claim. The person using the software bears all risk as to the quality and performance of the software.

© 2017 Cliff Huylebroeck