Skip to content

Instantly share code, notes, and snippets.

@zombie6888
zombie6888 / index.html
Last active September 14, 2015 20:26 — forked from anonymous/index.html
Slide contact form on pure js
<!--
autor: zhukov sergey
website: www.websiterog.ru
email : [email protected]
-->
<div id="contactform">
<div id="contact-button">
<div class="rotated-text">Contact</div>
</div>
body {
background-color: red !important
}
@zombie6888
zombie6888 / main.dart
Created February 21, 2023 15:19
yawning-crest-5354
main() {
print(DateTime.parse('2015-12-28'));
print(DateTime.parse('2015/12/28'));
}
void main() {
final now = DateTime.now();
final offset = now.timeZoneOffset;
final negativeDuration = Duration(hours: -3);
final duration = negativeDuration;
print(offset.isNegative);
print(negativeDuration.isNegative);
final date = DateTime.parse('2023-03-07 10:00').subtract(duration);
final utcDate = date.toLocal().toLocal().copyWith(isUtc: true).toIso8601String();
print(utcDate);