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
#!/bin/bash | |
# This script mount one or more ntfs disks on a mac (with read and write access). | |
# | |
# It is inspirated from the wiki available on https://github.com/osxfuse/osxfuse/wiki/NTFS-3G | |
# but prevents to replace the Apple's NTFS mount tool (located on /sbin/mount_ntfs) by using a | |
# simple command. | |
# | |
# To use this script, some preconditions are required: | |
# - macFuse must be installed (https://osxfuse.github.io/) |
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
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
public class DateUtils | |
{ | |
private static SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-DD HH:MM:SS.SSS"); | |
public static Date stringToDate(String stringDate) { | |
try { | |
return dateFormat.parse(stringDate); |